Package reactor.pool.decorators
Class InstrumentedPoolDecorators
java.lang.Object
reactor.pool.decorators.InstrumentedPoolDecorators
Utility class to expose various
InstrumentedPool decorators, which can also be used
via PoolBuilder.buildPoolAndDecorateWith(Function).- Author:
- Simon Baslé
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> GracefulShutdownInstrumentedPool<T> gracefulShutdown(InstrumentedPool<T> pool) Decorate the pool with the capacity togracefully shutdown, viaGracefulShutdownInstrumentedPool.disposeGracefully(Duration).
-
Method Details
-
gracefulShutdown
Decorate the pool with the capacity togracefully shutdown, viaGracefulShutdownInstrumentedPool.disposeGracefully(Duration).- Type Parameters:
T- the type of resources in the pool- Parameters:
pool- the original pool- Returns:
- the decorated pool which can now gracefully shutdown via additional methods
- See Also:
-