Module stormpot
Package stormpot.internal
package stormpot.internal
-
ClassDescriptionAllocationController<T extends Poolable>An AllocationController implements the actual allocation and deallocation of objects in a pool.The allocation process represent the means of building pool-specific
AllocationControllerinstances.The operating mode of anAllocationProcess.BAllocThread<T extends Poolable>The dedicated background allocation process of a pool that operates in theAllocationProcessMode.THREADEDmode.BlazePool is a highly optimisedPoolimplementation that consists of a queues of Poolable instances, the access to which is made faster with clever use of ThreadLocals.BlazePoolSingleThreadedTap<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.BlazePoolThreadSafeTap<T extends Poolable>The claim method in this pool tap offers similar thread-safety and performance to the default thread-safe pool tap.BlazePoolVirtualThreadSafeTap<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.BSlotCache<T extends Poolable>A reference to aBSlot.BSlotCachePadded<T extends Poolable>A reference to aBSlot, with extra padding to keep the pointer on its own cache line.BSlotPadded<T extends Poolable>ABSlottype with extra padding to ensure each slot is on their own CPU cache line.DirectAllocationController<T extends Poolable>TheAllocationControllerthat implements theAllocationProcessMode.DIRECTmode.EveryExpiration<T extends Poolable>The implementation of theExpiration.every(long, TimeUnit)andExpiration.every(long, long, TimeUnit)expiration combinators.LikeIdentityHashMap, but as a Set with no overhead for storing values.InlineAllocationController<T extends Poolable>TheAllocationControllerimplementation for theAllocationProcessMode.INLINEmode.Convenience functions for operating on relative nanosecond time spans.OrExpiration<T extends Poolable>Provides a way to composeExpirations.Exception type used to mark poison conditions on slots or in the pool.Container of default, initial settings for aPoolBuilder.PoolBuilderImpl<T extends Poolable>ThePoolBuilderimplementation.A holder of permissions, deciding whatPoolBuildersettings are allowed to be changed.Leak detector, used to detect if objects allocated by the pool get garbage collected, without first being deallocated by the pool.ReallocatingAdaptor<T extends Poolable>An adaptor that implementsReallocatorin terms of a givenAllocator.RefillPile<T extends Poolable>ARefillPilecan collect objects, in a concurrent and wait-free manner, before releasing them all to a queue.RefillSlot<T extends Poolable>The node type ofRefillPile.An implementation ofCompletionbased on a wait-free stack.A callback that will be notified when threads block on a given completion.ThreadedAllocationController<T extends Poolable>TheAllocationControllerimplementation for theAllocationProcessMode.THREADEDmode.TimeExpiration<T extends Poolable>This is a time basedExpiration.TimeSpreadExpiration<T extends Poolable>This is the standard time basedExpiration.