Class FixedObjectPool<T>
java.lang.Object
io.grpc.internal.FixedObjectPool<T>
- All Implemented Interfaces:
ObjectPool<T>
An object pool that always returns the same instance and does nothing when returning the object.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet an object from the pool.returnObject(Object returned) Return the object to the pool.
-
Field Details
-
object
-
-
Constructor Details
-
FixedObjectPool
-
-
Method Details
-
getObject
Description copied from interface:ObjectPoolGet an object from the pool.- Specified by:
getObjectin interfaceObjectPool<T>
-
returnObject
Description copied from interface:ObjectPoolReturn the object to the pool. The caller should not use the object beyond this point.- Specified by:
returnObjectin interfaceObjectPool<T>- Returns:
- always
null
-