public class RetryingAllocator<V extends stormpot.Poolable>
extends java.lang.Object
implements stormpot.Allocator<V>
| Constructor and Description |
|---|
RetryingAllocator(stormpot.Allocator<V> allocator) |
RetryingAllocator(stormpot.Allocator<V> allocator,
long waitInterval,
long maxWaitInterval) |
| Modifier and Type | Method and Description |
|---|---|
V |
allocate(stormpot.Slot slot) |
void |
deallocate(V poolable) |
public RetryingAllocator(stormpot.Allocator<V> allocator)
public RetryingAllocator(stormpot.Allocator<V> allocator, long waitInterval, long maxWaitInterval)
allocator - AllocatorwaitInterval - Wait time between allocation attempts (ms)maxWaitInterval - Max time to wait for an allocation (ms)Copyright © 2010-2019 JmxTrans team. All Rights Reserved.