Class ForceServerListenPortImposition

    • Method Detail

      • ephemeral

        public static ForceServerListenPortImposition ephemeral()
        Creates an imposition that forces the use of an ephemeral port.
        Returns:
        an imposition for an ephemeral port
      • of

        public static ForceServerListenPortImposition of​(int port)
        Creates an imposition that forces the use of the specified port.
        Parameters:
        port - the port to force
        Returns:
        an imposition for the specified port
      • getPort

        public int getPort()
        The port to be forced.
        Returns:
        the port to be forced