Class ThreadLocalObjectPool.Reusable
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.h2.ThreadLocalObjectPool.Reusable
-
- Enclosing class:
- ThreadLocalObjectPool<E extends AutoCloseable>
public class ThreadLocalObjectPool.Reusable extends Object
Wrapper for a pooled object with capability to return the object to a pool.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Eobject()voidrecycle()Returns an object to a pool or closes it if the pool is already full.
-
-
-
Method Detail
-
object
public E object()
- Returns:
- enclosed object.
-
recycle
public void recycle()
Returns an object to a pool or closes it if the pool is already full.
-
-