Class AutoReturnable<T>
- java.lang.Object
-
- dev.aherscu.qa.testing.extra.pooling.AutoReturnable<T>
-
- All Implemented Interfaces:
AutoCloseable
public class AutoReturnable<T> extends Object implements AutoCloseable
-
-
Field Detail
-
$
public final T $
-
-
Method Detail
-
close
public final void close() throws Exception
Returns the object to its pool.- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
- pooled object is missing reference to originating pool; should not happen if borrowed viaAutoReturnableObjectPool.borrowObject()
-
-