Class LifeCycleStatsCollector<T>
- java.lang.Object
-
- com.linkedin.alpini.base.pool.impl.LifeCycleFilter<T>
-
- com.linkedin.alpini.base.pool.impl.LifeCycleStatsCollector<T>
-
- All Implemented Interfaces:
AsyncPool.LifeCycle<T>
public class LifeCycleStatsCollector<T> extends LifeCycleFilter<T>
-
-
Constructor Summary
Constructors Constructor Description LifeCycleStatsCollector(AsyncPool.LifeCycle<T> lifeCycle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<T>create()protected CallTrackercreateCallTracker()java.util.concurrent.CompletableFuture<java.lang.Void>destroy(T entity)CallTracker.CallStatsgetCreateCallStats()CallTracker.CallStatsgetDestroyCallStats()CallTracker.CallStatsgetTestCallStats()java.util.concurrent.CompletableFuture<java.lang.Boolean>testAfterIdle(T entity)java.util.concurrent.CompletableFuture<java.lang.Boolean>testOnRelease(T entity)-
Methods inherited from class com.linkedin.alpini.base.pool.impl.LifeCycleFilter
isWrapperFor, unwrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.linkedin.alpini.base.pool.AsyncPool.LifeCycle
shutdown
-
-
-
-
Constructor Detail
-
LifeCycleStatsCollector
public LifeCycleStatsCollector(@Nonnull AsyncPool.LifeCycle<T> lifeCycle)
-
-
Method Detail
-
createCallTracker
protected CallTracker createCallTracker()
-
create
public java.util.concurrent.CompletableFuture<T> create()
- Specified by:
createin interfaceAsyncPool.LifeCycle<T>- Overrides:
createin classLifeCycleFilter<T>
-
getCreateCallStats
public CallTracker.CallStats getCreateCallStats()
-
testOnRelease
public java.util.concurrent.CompletableFuture<java.lang.Boolean> testOnRelease(T entity)
- Specified by:
testOnReleasein interfaceAsyncPool.LifeCycle<T>- Overrides:
testOnReleasein classLifeCycleFilter<T>
-
testAfterIdle
public java.util.concurrent.CompletableFuture<java.lang.Boolean> testAfterIdle(T entity)
- Specified by:
testAfterIdlein interfaceAsyncPool.LifeCycle<T>- Overrides:
testAfterIdlein classLifeCycleFilter<T>
-
getTestCallStats
public CallTracker.CallStats getTestCallStats()
-
destroy
public java.util.concurrent.CompletableFuture<java.lang.Void> destroy(T entity)
- Specified by:
destroyin interfaceAsyncPool.LifeCycle<T>- Overrides:
destroyin classLifeCycleFilter<T>
-
getDestroyCallStats
public CallTracker.CallStats getDestroyCallStats()
-
-