Interface ObjectPoolEntry<T>
-
- All Superinterfaces:
AutoCloseable,Closeable
public interface ObjectPoolEntry<T> extends Closeable
An ObjectPoolEntry is a borrowed object from pool.- Author:
- Laszlo Hordos
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Release the pooled object and puts back to the pool where is was borrowed from.TgetPooledObject()Gets the object which is pooled.
-
-
-
Method Detail
-
getPooledObject
T getPooledObject()
Gets the object which is pooled.- Returns:
- The pooled object instance.
-
close
void close() throws IOExceptionRelease the pooled object and puts back to the pool where is was borrowed from.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-