| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final InstrumentedPool | |
| private final Mono | |
| private final List | |
| private final ConnectionFactory | |
| private static final String | |
| private static final Logger | |
| private final Duration | |
| private final Duration | |
| private final Optional | |
| private final Function |
| Access | Constructor and Description |
|---|---|
| public | ConnectionPool(ConnectionPoolConfiguration
the configuration to use for building the connection pool. configuration)Creates a new connection factory. |
| Modifier and Type | Method and Description |
|---|---|
| public Mono | close()
Implements io. |
| public Mono | |
| private InstrumentedPool | |
| public void | dispose()
Implements reactor. |
| public Mono | Returns: a Mono triggering the shutdown of the pool once subscribed.Dispose this |
| public ConnectionFactoryMetadata | getMetadata()
Implements io. ConnectionFactoryMetadata about the product this ConnectionFactory is applicable to.
|
| public Optional | |
| protected ObjectName | |
| private Function | |
| private Function | |
| private Mono | |
| public boolean | isDisposed()
Overrides default reactor. |
| private void | |
| public String | |
| public ConnectionFactory | unwrap()
Implements io. |
| public Mono | Returns: a coldMono that triggers resource warmup and emits the number of warmed up resources.Warms up the |
| connectionPool | back to summary |
|---|---|
| private final InstrumentedPool<Connection> connectionPool | |
| create | back to summary |
|---|---|
| private final Mono<Connection> create | |
| destroyHandlers | back to summary |
|---|---|
| private final List<Runnable> destroyHandlers | |
| factory | back to summary |
|---|---|
| private final ConnectionFactory factory | |
| HOOK_ON_DROPPED | back to summary |
|---|---|
| private static final String HOOK_ON_DROPPED | |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| maxAcquireTime | back to summary |
|---|---|
| private final Duration maxAcquireTime | |
| maxValidationTime | back to summary |
|---|---|
| private final Duration maxValidationTime | |
| poolMetrics | back to summary |
|---|---|
| private final Optional<PoolMetrics> poolMetrics | |
| preRelease | back to summary |
|---|---|
| private final Function<? super Connection, ? extends Publisher<Void>> preRelease
| |
| ConnectionPool | back to summary |
|---|---|
| public ConnectionPool(ConnectionPoolConfiguration configuration) Creates a new connection factory.
| |
| close | back to summary |
|---|---|
| public Mono Implements io. Doc from io. Close this object and release any resources associated with it. If the object is already closed, then | |
| create | back to summary |
|---|---|
| public Mono Implements io. Doc from io. Creates a new
| |
| createConnectionPool | back to summary |
|---|---|
private InstrumentedPool
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements reactor. Doc from reactor. Cancel or dispose the underlying task or resource. Implementations are required to make this method idempotent.
| |
| disposeLater | back to summary |
|---|---|
| public Mono Dispose this When multiple errors occurred during dispose flow, they are added as suppressed errors onto the first error. | |
| getMetadata | back to summary |
|---|---|
| public ConnectionFactoryMetadata getMetadata() Implements io. Doc from io. Returns the
| |
| getMetrics | back to summary |
|---|---|
| public Optional Returns
| |
| getPoolObjectName | back to summary |
|---|---|
| protected ObjectName getPoolObjectName(String name) throws MalformedObjectNameException Construct JMX
| |
| getValidation | back to summary |
|---|---|
| private Function | |
| getValidationFunction | back to summary |
|---|---|
| private Function | |
| getValidConnection | back to summary |
|---|---|
| private Mono | |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Overrides default reactor. Doc from reactor. Optionally return true when the resource or task is disposed. Implementations are not required to track disposition and as such may never return true even when disposed. However, they MUST only return true when there's a guarantee the resource or task is disposed.
| |
| registerToJmx | back to summary |
|---|---|
| private void registerToJmx(PoolMetrics poolMetrics, String name) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| unwrap | back to summary |
|---|---|
| public ConnectionFactory unwrap() Implements io. Doc from io. Returns the original instance wrapped by this object.
| |
| warmup | back to summary |
|---|---|
| public Mono Warms up the | |
| Modifier and Type | Field and Description |
|---|---|
| private final PoolMetrics |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | getAcquiredSize()
Implements io. ConnectionPool#create() acquired and are in active use.
|
| public int | getAllocatedSize()
Implements io. ConnectionPool, acquired
or idle.
|
| public int | getIdleSize()
Implements io. ConnectionPool.
|
| public int | getMaxAllocatedSize()
Implements io. ConnectionPool will allow.
|
| public int | getMaxPendingAcquireSize()
Implements io. ConnectionPool#create() this ConnectionPool can queue in
a pending state when no available connection is immediately handy (and the ConnectionPool
cannot allocate more connections).
|
| public int | getPendingAcquireSize()
Implements io. ConnectionPool#create() acquire Monos in
the ConnectionPool.
|
| poolMetrics | back to summary |
|---|---|
| private final PoolMetrics poolMetrics | |
| ConnectionPoolMXBeanImpl | back to summary |
|---|---|
| pack-priv ConnectionPoolMXBeanImpl(PoolMetrics poolMetrics) | |
| getAcquiredSize | back to summary |
|---|---|
| public int getAcquiredSize() Implements io. Doc from io. Measure the current number of connections that have been successfully
| |
| getAllocatedSize | back to summary |
|---|---|
| public int getAllocatedSize() Implements io. Doc from io. Measure the current number of allocated connections in the | |
| getIdleSize | back to summary |
|---|---|
| public int getIdleSize() Implements io. Doc from io. Measure the current number of idle connections in the
Note that some connections might be lazily evicted when they're next considered
for an incoming
| |
| getMaxAllocatedSize | back to summary |
|---|---|
| public int getMaxAllocatedSize() Implements io. Doc from io. Get the maximum number of live connections this
A
| |
| getMaxPendingAcquireSize | back to summary |
|---|---|
| public int getMaxPendingAcquireSize() Implements io. Doc from io. Get the maximum number of
A
| |
| getPendingAcquireSize | back to summary |
|---|---|
| public int getPendingAcquireSize() Implements io. Doc from io. Measure the current number of "pending" An acquire is in the pending state when it is attempted at a point when no idle connections is available in the pool, and no new connection can be created.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final InstrumentedPool. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | acquiredSize()
Implements io. ConnectionPool#create() acquired} and are in active use.
|
| public int | allocatedSize()
Implements io. ConnectionPool, acquired
or idle.
|
| public int | getMaxAllocatedSize()
Implements io. ConnectionPool will allow.
|
| public int | getMaxPendingAcquireSize()
Implements io. ConnectionPool#create() this ConnectionPool can queue in
a pending state when no available connection is immediately handy (and the ConnectionPool
cannot allocate more connections).
|
| public int | idleSize()
Implements io. ConnectionPool.
|
| public int | pendingAcquireSize()
Implements io. ConnectionPool#create() acquire Monos in
the ConnectionPool.
|
| delegate | back to summary |
|---|---|
| private final InstrumentedPool. | |
| PoolMetricsWrapper | back to summary |
|---|---|
| pack-priv PoolMetricsWrapper(InstrumentedPool. | |
| acquiredSize | back to summary |
|---|---|
| public int acquiredSize() Implements io. Doc from io. Measure the current number of connections that have been successfully
| |
| allocatedSize | back to summary |
|---|---|
| public int allocatedSize() Implements io. Doc from io. Measure the current number of allocated connections in the | |
| getMaxAllocatedSize | back to summary |
|---|---|
| public int getMaxAllocatedSize() Implements io. Doc from io. Get the maximum number of live connections this
A
| |
| getMaxPendingAcquireSize | back to summary |
|---|---|
| public int getMaxPendingAcquireSize() Implements io. Doc from io. Get the maximum number of
A
| |
| idleSize | back to summary |
|---|---|
| public int idleSize() Implements io. Doc from io. Measure the current number of idle connections in the
Note that some connections might be lazily evicted when they're next considered
for an incoming
| |
| pendingAcquireSize | back to summary |
|---|---|
| public int pendingAcquireSize() Implements io. Doc from io. Measure the current number of "pending" An acquire is in the pending state when it is attempted at a point when no idle connections is available in the pool, and no new connection can be created.
| |