Top Methods
reactor.netty.resources

public Interface ConnectionPoolMetrics

Known Direct Implementers
reactor.netty.resources.DelegatingConnectionPoolMetrics

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the number of acquired resources
acquiredSize
()

Measure the current number of resources that have been successfully acquired and are in active use.

public int

Returns:

the total number of allocated resources managed by the pool
allocatedSize
()

Measure the current number of allocated resources in the pool, acquired or idle.

public int

Returns:

the number of idle resources
idleSize
()

Measure the current number of idle resources in the pool.

public int

Returns:

the maximum number of live resources that can be allocated by this Pool
maxAllocatedSize
()

Get the maximum number of live resources this Pool will allow.

public int

Returns:

the maximum number of pending acquire that can be enqueued by this Pool
maxPendingAcquireSize
()

Get the maximum number of Pool.acquire() this Pool can queue in a pending state when no available resource is immediately handy (and the Pool cannot allocate more resources).

public int

Returns:

the number of pending acquire
pendingAcquireSize
()

Measure the current number of "pending" acquire Monos in the Pool.

Method Detail

acquiredSizeback to summary
public int acquiredSize()

Measure the current number of resources that have been successfully acquired and are in active use.

Returns:int

the number of acquired resources

allocatedSizeback to summary
public int allocatedSize()

Measure the current number of allocated resources in the pool, acquired or idle.

Returns:int

the total number of allocated resources managed by the pool

idleSizeback to summary
public int idleSize()

Measure the current number of idle resources in the pool.

Note that some resources might be lazily evicted when they're next considered for an incoming acquire call. Such resources would still count towards this method.

Returns:int

the number of idle resources

maxAllocatedSizeback to summary
public int maxAllocatedSize()

Get the maximum number of live resources this Pool will allow.

A Pool might be unbounded, in which case this method returns Integer.MAX_VALUE.

Returns:int

the maximum number of live resources that can be allocated by this Pool

Since
1.0.14
maxPendingAcquireSizeback to summary
public int maxPendingAcquireSize()

Get the maximum number of Pool.acquire() this Pool can queue in a pending state when no available resource is immediately handy (and the Pool cannot allocate more resources).

A Pool pending queue might be unbounded, in which case this method returns Integer.MAX_VALUE.

Returns:int

the maximum number of pending acquire that can be enqueued by this Pool

Since
1.0.14
pendingAcquireSizeback to summary
public int pendingAcquireSize()

Measure the current number of "pending" acquire Monos in the Pool.

An acquire is in the pending state when it is attempted at a point when no idle resource is available in the pool, and no new resource can be created.

Returns:int

the number of pending acquire