Package com.linkedin.alpini.base.pool
Interface AsyncPool.LifeCycle<T>
-
- All Known Implementing Classes:
LifeCycleFilter
,LifeCycleStatsCollector
,RateLimitedCreateLifeCycle
public static interface AsyncPool.LifeCycle<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<T>
create()
java.util.concurrent.CompletableFuture<java.lang.Void>
destroy(T entity)
default boolean
isWrapperFor(java.lang.Class<?> iface)
default java.util.concurrent.CompletableFuture<java.lang.Void>
shutdown()
java.util.concurrent.CompletableFuture<java.lang.Boolean>
testAfterIdle(T entity)
java.util.concurrent.CompletableFuture<java.lang.Boolean>
testOnRelease(T entity)
default <W> W
unwrap(java.lang.Class<W> iface)
-
-
-
Method Detail
-
create
java.util.concurrent.CompletableFuture<T> create()
-
testOnRelease
java.util.concurrent.CompletableFuture<java.lang.Boolean> testOnRelease(T entity)
-
testAfterIdle
java.util.concurrent.CompletableFuture<java.lang.Boolean> testAfterIdle(T entity)
-
destroy
java.util.concurrent.CompletableFuture<java.lang.Void> destroy(T entity)
-
shutdown
default java.util.concurrent.CompletableFuture<java.lang.Void> shutdown()
-
unwrap
default <W> W unwrap(java.lang.Class<W> iface)
-
isWrapperFor
default boolean isWrapperFor(java.lang.Class<?> iface)
-
-