Interface ConnectionFilter

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    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.