Package com.linkedin.venice.utils.pools
Class LandFillObjectPool<O>
java.lang.Object
com.linkedin.venice.utils.pools.LandFillObjectPool<O>
- All Implemented Interfaces:
ObjectPool<O>
A dummy implementation which simply allocates a new object on every
ObjectPool.get() and lets the garbage collector
dispose of it rather than reusing.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LandFillObjectPool
-
-
Method Details
-
dispose
Description copied from interface:ObjectPoolReturn an object to the pool, indicating that it will no longer be used and can be recycled.- Parameters:
object- which is no longer used.
-
get
- Specified by:
getin interfaceObjectPool<O>- Returns:
- an object, potentially from the pool, or potentially instantiating a new one if necessary.
-