Package io.undertow.util
Class NewInstanceObjectPool<T>
- java.lang.Object
-
- io.undertow.util.NewInstanceObjectPool<T>
-
- All Implemented Interfaces:
ObjectPool
public class NewInstanceObjectPool<T> extends Object implements ObjectPool
- Author:
- ckozak, Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description NewInstanceObjectPool(Supplier<T> supplier, Consumer<T> consumer)
-
-
-
Method Detail
-
allocate
public PooledObject allocate()
- Specified by:
allocate
in interfaceObjectPool<T>
-
-