Package io.grpc.internal
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet an object from the pool.returnObject
(Object returned) Return the object to the pool.
-
Constructor Details
-
FixedObjectPool
-
-
Method Details
-
getObject
Description copied from interface:ObjectPool
Get an object from the pool.- Specified by:
getObject
in interfaceObjectPool<T>
-
returnObject
Description copied from interface:ObjectPool
Return the object to the pool. The caller should not use the object beyond this point.- Specified by:
returnObject
in interfaceObjectPool<T>
- Returns:
- always
null
-