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 void
close()
Release the pooled object and puts back to the pool where is was borrowed from.T
getPooledObject()
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 IOException
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
-
-