Interface ObjectPoolEntry<T>
- All Superinterfaces:
AutoCloseable
,Closeable
An ObjectPoolEntry is a borrowed object from pool.
- Author:
- Laszlo Hordos
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Release the pooled object and puts back to the pool where is was borrowed from.Gets the object which is pooled.
-
Method Details
-
getPooledObject
T getPooledObject()Gets the object which is pooled.- Returns:
- The pooled object instance.
-
close
Release the pooled object and puts back to the pool where is was borrowed from.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-