Interface PortProvider

  • All Known Implementing Classes:
    StaticPortProvider
    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 PortProvider
    Strategy interface to provide access to a port (which may change if an existing connection is closed).
    Since:
    1.3.0
    • Method Detail

      • getPort

        int getPort()
        Return the port number.
        Returns:
        the port number