Package net.corda.core.internal
Class LazyPool
-
-
Method Summary
-
-
Constructor Detail
-
LazyPool
LazyPool(Function1<A, Unit> clear, Function1<A, Boolean> shouldReturnToPool, Integer bound, Function0<A> newInstance)
- Parameters:
clear
- If specified this function will be run on each borrowed instance before handing it over.shouldReturnToPool
- If specified this function will be run on each release to determine whether the instance should be returned to the pool for reuse.bound
- If specified the pool will be bounded.newInstance
- The function to call to lazily newInstance a pooled resource.
-
-
-
-