T - the type of the pooled objectpublic static interface ObjectPool.ObjectCreator<T>
ObjectPool.Handle and calls ObjectPool.Handle.recycle(Object) once
it can be re-used.| Modifier and Type | Method and Description |
|---|---|
T |
newObject(ObjectPool.Handle<T> handle)
Creates an returns a new
Object that can be used and later recycled via
ObjectPool.Handle.recycle(Object). |
T newObject(ObjectPool.Handle<T> handle)
Object that can be used and later recycled via
ObjectPool.Handle.recycle(Object).handle - can NOT be null.Copyright © 2008–2025 The Netty Project. All rights reserved.