Uses of Interface
stormpot.Allocator
-
-
Uses of Allocator in stormpot
Subinterfaces of Allocator in stormpot Modifier and Type Interface Description interface
Reallocator<T extends Poolable>
Methods in stormpot that return Allocator Modifier and Type Method Description Allocator<T>
PoolBuilder. getAllocator()
Get the configuredAllocator
instance.Methods in stormpot with parameters of type Allocator Modifier and Type Method Description static <T extends Poolable>
PoolBuilder<T>Pool. from(Allocator<T> allocator)
Get aPoolBuilder
based on the givenAllocator
orReallocator
, which can then in turn be used to build aPool
instance with the desired configuration.static <T extends Poolable>
PoolBuilder<T>Pool. fromInline(Allocator<T> allocator)
Get aPoolBuilder
based on the givenAllocator
orReallocator
, which can then in turn be used to build aPool
operating in the <em>inline</em> mode, with the desired configuration.static <T extends Poolable>
PoolBuilder<T>Pool. fromThreaded(Allocator<T> allocator)
Get aPoolBuilder
based on the givenAllocator
orReallocator
, which can then in turn be used to build a <em>threaded</em>Pool
instance with the desired configuration.<X extends Poolable>
PoolBuilder<X>PoolBuilder. setAllocator(Allocator<X> allocator)
Set theAllocator
orReallocator
to use for the pools we want to configure.
-