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