Uses of Interface
stormpot.PoolTap
Packages that use PoolTap
-
Uses of PoolTap in stormpot
Modifier and TypeInterfaceDescriptioninterfaceA Pool is a self-renewable set of objects from which one can claim exclusive access to elements, until they are released back into the pool.Modifier and TypeMethodDescriptionPool.getSingleThreadedTap()Get aPoolTapthat only support access by one thread at a time.Pool.getThreadSafeTap()Get a thread-safePoolTapimplementation for this pool, which can be freely shared among multiple threads.Pool.getVirtualThreadSafeTap()Get a thread-safePoolTapimplementation for this pool, which can be freely shared among multiple threads, including virtual threads. -
Uses of PoolTap in stormpot.internal
Classes in stormpot.internal that implement PoolTapModifier and TypeClassDescriptionfinal classBlazePool is a highly optimisedPoolimplementation that consists of a queues of Poolable instances, the access to which is made faster with clever use of ThreadLocals.final classBlazePoolSingleThreadedTap<T extends Poolable>The claim method in this pool tap follows the same idea as the thread-local caching and TLR-claiming in the pool itself.final classBlazePoolThreadSafeTap<T extends Poolable>The claim method in this pool tap offers similar thread-safety and performance to the default thread-safe pool tap.final classBlazePoolVirtualThreadSafeTap<T extends Poolable>The claim method in this pool tap offers similar thread-safety and performance to the default thread-safe pool tap, but without the use ofThreadLocal.Methods in stormpot.internal that return PoolTapModifier and TypeMethodDescriptionBlazePool.getSingleThreadedTap()BlazePool.getThreadSafeTap()BlazePool.getVirtualThreadSafeTap()