Uses of Interface
stormpot.Allocator
Packages that use Allocator
-
Uses of Allocator in stormpot
Modifier and TypeMethodDescriptionPoolBuilder.getAllocator()Get the configuredAllocatorinstance.Modifier and TypeMethodDescriptionstatic <T extends Poolable>
PoolBuilder<T> Get aPoolBuilderbased on the givenAllocatororReallocator, which can then in turn be used to build aPoolinstance with the desired configuration.static <T extends Poolable>
PoolBuilder<T> Pool.fromInline(Allocator<T> allocator) Get aPoolBuilderbased on the givenAllocatororReallocator, which can then in turn be used to build aPooloperating in the inline mode, with the desired configuration.static <T extends Poolable>
PoolBuilder<T> Pool.fromThreaded(Allocator<T> allocator) Get aPoolBuilderbased on the givenAllocatororReallocator, which can then in turn be used to build a threadedPoolinstance with the desired configuration.<X extends Poolable>
PoolBuilder<X> PoolBuilder.setAllocator(Allocator<X> allocator) Set theAllocatororReallocatorto use for the pools we want to configure.Pool.switchAllocator(Allocator<T> replacementAllocator) Initiate a switch from the current allocator to the given allocator. -
Uses of Allocator in stormpot.internal
Classes in stormpot.internal that implement AllocatorModifier and TypeClassDescriptionclassReallocatingAdaptor<T extends Poolable>An adaptor that implementsReallocatorin terms of a givenAllocator.Methods in stormpot.internal that return AllocatorModifier and TypeMethodDescriptionPoolBuilderImpl.getAllocator()ReallocatingAdaptor.unwrap()Unwrap this adaptor to reveal the underlyingAllocator.Methods in stormpot.internal with parameters of type AllocatorModifier and TypeMethodDescription<X extends Poolable>
PoolBuilder<X> PoolBuilderImpl.setAllocator(Allocator<X> allocator) BlazePool.switchAllocator(Allocator<T> replacementAllocator) Constructors in stormpot.internal with parameters of type AllocatorModifierConstructorDescriptionPoolBuilderImpl(AllocationProcess allocationProcess, Allocator<T> allocator) Build a new emptyPoolBuilderobject.ReallocatingAdaptor(Allocator<T> allocator) Adapt the givenAllocatorinto aReallocator.