public interface ObjectPool<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ObjectPool.Resource<T>
Defines a resource, and the way to create and destroy instances of it.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getObject()
Get an object from the pool.
|
void |
returnObject(T returned)
Return the object to the pool.
|
Copyright © 2023. All rights reserved.