DATATYPE - The type of object to be pooled.public interface IMutableObjectPool<DATATYPE>
| Modifier and Type | Method and Description |
|---|---|
DATATYPE |
borrowObject()
Borrow an object from the pool.
|
ESuccess |
returnObject(DATATYPE aItem)
Return a previously borrowed object back to the pool.
|
@Nullable DATATYPE borrowObject()
null depending on the
factory, and the locking used.@Nonnull ESuccess returnObject(@Nonnull DATATYPE aItem)
aItem - The previously borrowed object to be returned. Never
null.ESuccess.SUCCESS upon successCopyright © 2014–2017 Philip Helger. All rights reserved.