Class NextSafeAvailablePort


  • public class NextSafeAvailablePort
    extends Object
    NextSafeAvailablePort.
    Since:
    0.1
    • Constructor Detail

      • NextSafeAvailablePort

        public NextSafeAvailablePort()
        Ctor.
      • NextSafeAvailablePort

        public NextSafeAvailablePort​(int from)
        Ctor.
        Parameters:
        from - Port to start scan from
    • Method Detail

      • value

        public int value()
        Gets the next available port starting at a port.
        Returns:
        Next available port
        Throws:
        IllegalArgumentException - if there are no ports available