PortAllocation
Keywords: net.corda.testing.driver.PortAllocation class
Date: 2023-09-18

net.corda.testing.driver

## Class PortAllocation

- net.corda.testing.driver.PortAllocation

- Direct Known Subclasses:
    PortAllocation.Incremental

      @DoNotImplement
      public class PortAllocation

- - ### Field Detail

    - #### DEFAULT_START_PORT

          public static int DEFAULT_START_PORT

      See Also:
        Constant Field Values

    - #### FIRST_EPHEMERAL_PORT

          public static int FIRST_EPHEMERAL_PORT

      See Also:
        Constant Field Values

    - #### Companion

          public static net.corda.testing.driver.PortAllocation.Companion Companion

  - ### Constructor Detail

    - #### PortAllocation

          public PortAllocation()

  - ### Method Detail

    - #### nextHostAndPort

          @NotNull
          public NetworkHostAndPort nextHostAndPort()

      Get the next available port via `nextPort` and then return a `class NetworkHostAndPort`

      See Also:
        `nextPort`, `class NetworkHostAndPort`

    - #### nextPort

          public int nextPort()

    - #### getDefaultAllocator

          @NotNull
          public static PortAllocation getDefaultAllocator()