| Package | Description |
|---|---|
| stormpot |
Stormpot
|
| stormpot.bpool | |
| stormpot.qpool |
| Modifier and Type | Method and Description |
|---|---|
Config<T> |
Config.clone()
Returns a shallow copy of this Config object.
|
<X extends Poolable> |
Config.setAllocator(Allocator<X> allocator)
Set the
Allocator or Reallocator to use for the pools we
want to configure. |
Config<T> |
Config.setBackgroundExpirationEnabled(boolean enabled)
Enable or disable background object expiration checking.
|
Config<T> |
Config.setExpiration(Expiration<? super T> expiration)
Set the
Expiration to use for the pools we want to
configure. |
Config<T> |
Config.setMetricsRecorder(MetricsRecorder metricsRecorder)
Set the
MetricsRecorder to use for the pools we want to configure. |
Config<T> |
Config.setPreciseLeakDetectionEnabled(boolean enabled)
Enable or disable precise object leak detection.
|
Config<T> |
Config.setSize(int size)
Set the size of the pools we want to configure them with.
|
Config<T> |
Config.setThreadFactory(ThreadFactory factory)
Set the ThreadFactory that the pools will use to create its background
threads with.
|
| Constructor and Description |
|---|
BlazePool(Config<T> config)
Construct a new BlazePool instance based on the given
Config. |
QueuePool(Config<T> config)
Construct a new QueuePool instance based on the given
Config. |
| Constructor and Description |
|---|
BlazePool(Config<T> config)
Deprecated.
Construct a new BlazePool instance based on the given
Config. |
| Constructor and Description |
|---|
QueuePool(Config<T> config)
Deprecated.
Construct a new QueuePool instance based on the given
Config. |
Copyright © 2011-2014–2015. All rights reserved.