public final class InstrumentedPoolDecorators extends Object
InstrumentedPool
decorators, which can also be used
via PoolBuilder.buildPoolAndDecorateWith(Function)
.Modifier and Type | Method and Description |
---|---|
static <T> GracefulShutdownInstrumentedPool<T> |
gracefulShutdown(InstrumentedPool<T> pool)
Decorate the pool with the capacity to
gracefully shutdown ,
via GracefulShutdownInstrumentedPool.disposeGracefully(Duration) . |
public static <T> GracefulShutdownInstrumentedPool<T> gracefulShutdown(InstrumentedPool<T> pool)
gracefully shutdown
,
via GracefulShutdownInstrumentedPool.disposeGracefully(Duration)
.T
- the type of resources in the poolpool
- the original poolGracefulShutdownInstrumentedPool