Uses of Interface
stormpot.PoolBuilder
Packages that use PoolBuilder
-
Uses of PoolBuilder in stormpot
Methods in stormpot that return PoolBuilderModifier and TypeMethodDescriptionPoolBuilder.clone()Returns a shallow copy of thisPoolBuilderobject.static <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.PoolBuilder.setBackgroundExpirationCheckDelay(int delay) Set the approximate delay, in milliseconds, between background maintenance tasks.PoolBuilder.setBackgroundExpirationEnabled(boolean enabled) Enable or disable background object expiration checking.PoolBuilder.setExpiration(Expiration<? super T> expiration) Set theExpirationto use for the pools we want to configure.PoolBuilder.setMetricsRecorder(MetricsRecorder metricsRecorder) Set theMetricsRecorderto use for the pools we want to configure.PoolBuilder.setOptimizeForReducedMemoryUsage(boolean reduceMemoryUsage) Tell the pool to optimize for either low memory usage (when givingtrue), or maximal performance (when givingfalse).PoolBuilder.setPreciseLeakDetectionEnabled(boolean enabled) Enable or disable precise object leak detection.PoolBuilder.setSize(long size) Set the size of the pool we are building.PoolBuilder.setThreadFactory(ThreadFactory factory) Set the ThreadFactory that the pools will use to create its background threads with. -
Uses of PoolBuilder in stormpot.internal
Classes in stormpot.internal that implement PoolBuilderModifier and TypeClassDescriptionfinal classPoolBuilderImpl<T extends Poolable>ThePoolBuilderimplementation.Methods in stormpot.internal that return PoolBuilderModifier and TypeMethodDescription<X extends Poolable>
PoolBuilder<X> PoolBuilderImpl.setAllocator(Allocator<X> allocator) PoolBuilderImpl.setBackgroundExpirationCheckDelay(int delay) PoolBuilderImpl.setBackgroundExpirationEnabled(boolean enabled) PoolBuilderImpl.setExpiration(Expiration<? super T> expiration) PoolBuilderImpl.setMetricsRecorder(MetricsRecorder metricsRecorder) PoolBuilderImpl.setOptimizeForReducedMemoryUsage(boolean reduceMemoryUsage) PoolBuilderImpl.setPreciseLeakDetectionEnabled(boolean enabled) PoolBuilderImpl.setSize(long size) PoolBuilderImpl.setThreadFactory(ThreadFactory factory)