corda / net.corda.testing.driver / PortAllocation / Incremental

Incremental

class Incremental : PortAllocation

An implementation of PortAllocation which allocates ports sequentially

Constructors

<init>

Incremental(startingPort: Int)

An implementation of PortAllocation which allocates ports sequentially

Properties

portCounter

val portCounter: AtomicInteger

The backing AtomicInteger used to keep track of the currently allocated port

Functions

nextPort

fun nextPort(): Int

Get the next available port

Inherited Functions

nextHostAndPort

fun nextHostAndPort(): NetworkHostAndPort

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