Package io.undertow.util
Class SimpleObjectPool<T>
- java.lang.Object
-
- io.undertow.util.SimpleObjectPool<T>
-
- All Implemented Interfaces:
ObjectPool
public class SimpleObjectPool<T> extends Object implements ObjectPool
Simple pool that attempts to maintain a specified number of objects in the pool. If more objects are created new ones are created on the fly, and then destroyed once the pool is full.- Author:
- ckozak, Stuart Douglas
-
-
Method Detail
-
allocate
public PooledObject<T> allocate()
- Specified by:
allocate
in interfaceObjectPool<T>
-
-