Package io.grpc.internal
Interface ObjectPool<T>
- All Known Implementing Classes:
FixedObjectPool
,SharedResourcePool
@ThreadSafe
public interface ObjectPool<T>
An object pool.
-
Method Summary
Modifier and TypeMethodDescriptionGet an object from the pool.returnObject
(Object object) Return the object to the pool.
-
Method Details
-
getObject
T getObject()Get an object from the pool. -
returnObject
Return the object to the pool. The caller should not use the object beyond this point.- Returns:
- always
null
-