Package io.netty.util.internal
Interface ObjectPool.ObjectCreator<T>
- 
- Type Parameters:
 T- the type of the pooled object
- Enclosing class:
 - ObjectPool<T>
 
@Deprecated public static interface ObjectPool.ObjectCreator<T>Deprecated.For removal. Please useRecycler()instead.Creates a new Object which references the givenObjectPool.Handleand callsObjectPool.Handle.recycle(Object)once it can be re-used. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description TnewObject(ObjectPool.Handle<T> handle)Deprecated.Creates an returns a newObjectthat can be used and later recycled viaObjectPool.Handle.recycle(Object). 
 - 
 
- 
- 
Method Detail
- 
newObject
T newObject(ObjectPool.Handle<T> handle)
Deprecated.Creates an returns a newObjectthat can be used and later recycled viaObjectPool.Handle.recycle(Object).- Parameters:
 handle- can NOT be null.
 
 - 
 
 -