Interface ConnectionFilter


  • public interface ConnectionFilter
    The filter of incoming connections.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean accept​(java.nio.channels.AsynchronousSocketChannel channel)
      This method must decide if a Connection can be accepted or not.
    • Method Detail

      • accept

        boolean accept​(java.nio.channels.AsynchronousSocketChannel channel)
        This method must decide if a Connection can be accepted or not.
        Parameters:
        channel - - the channel to be filtered
        Returns:
        if a the channel is acceptable.