Interface NetherServerThrottle

All Known Implementing Classes:
DefaultNetherServerThrottle

public interface NetherServerThrottle
Decides whether a join may go ahead, before its native peer is created. Set on the server channel with NetherChannelOption.NETHER_SERVER_THROTTLE.
See Also:
  • Method Details

    • accept

      boolean accept(InetSocketAddress address)
      Parameters:
      address - The address the peer signaled from
      Returns:
      Whether the join may go ahead. An accepted join is followed by closed(java.net.InetSocketAddress) once its connection closes.
    • closed

      void closed(InetSocketAddress address)
      Parameters:
      address - The address a join was accepted for