Class ObjectPool<T>
java.lang.Object
io.netty.util.internal.ObjectPool<T>
- Type Parameters:
T- the type of the pooled object
Light-weight object pool.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceHandle for an pooledObjectthat will be used to notify theObjectPoolonce it can reuse the pooledObjectagain.static interfaceDeprecated.For removal. -
Method Summary
Modifier and TypeMethodDescriptionabstract Tget()Deprecated.For removal.static <T> ObjectPool<T> newPool(ObjectPool.ObjectCreator<T> creator) Deprecated.For removal.
-
Method Details
-
get
Deprecated.For removal. Please useRecycler.get()instead.Get aObjectfrom theObjectPool. The returnedObjectmay be created viaObjectPool.ObjectCreator.newObject(Handle)if no pooledObjectis ready to be reused. -
newPool
Deprecated.For removal. Please useinstead.invalid reference
Recycler()Creates a newObjectPoolwhich will use the givenObjectPool.ObjectCreatorto create theObjectthat should be pooled.
-