Top Description Constructors Methods
reactor.pool.decorators

public final Class InstrumentedPoolDecorators

extends Object
Class Inheritance
Imports
java.time.Duration, java.util.function.Function, reactor.pool.InstrumentedPool

Utility class to expose various InstrumentedPool decorators, which can also be used via reactor.pool.PoolBuilder#buildPoolAndDecorateWith(Function).
Author
Simon Baslé

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <
the type of resources in the pool
T
>
GracefulShutdownInstrumentedPool<T>

Returns:

the decorated pool which can now gracefully shutdown via additional methods
gracefulShutdown
(InstrumentedPool<T>
the original pool
pool
)

Decorate the pool with the capacity to gracefully shutdown, via GracefulShutdownInstrumentedPool#disposeGracefully(Duration).

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

InstrumentedPoolDecoratorsback to summary
private InstrumentedPoolDecorators()

Method Detail

gracefulShutdownback to summary
public static <T> GracefulShutdownInstrumentedPool<T> gracefulShutdown(InstrumentedPool<T> pool)

Decorate the pool with the capacity to gracefully shutdown, via GracefulShutdownInstrumentedPool#disposeGracefully(Duration).

Parameters
<T>
the type of resources in the pool
pool:InstrumentedPool<T>

the original pool

Returns:GracefulShutdownInstrumentedPool<T>

the decorated pool which can now gracefully shutdown via additional methods

See Also
GracefulShutdownInstrumentedPool