Class AutoCloseablePool
java.lang.Object
zombie.util.PooledObject
zombie.util.AutoCloseablePool
- All Implemented Interfaces:
AutoCloseable
,IPooledObject
-
Method Summary
Modifier and TypeMethodDescriptionstatic AutoCloseablePool
alloc()
<T> T
alloc
(Supplier<T> supplier, Invokers.Params1.ICallback<T> iCallback) void
close()
void
Methods inherited from class zombie.util.PooledObject
getPoolReference, isFree, release, setFree, setPool
-
Method Details
-
alloc
-
onReleased
public void onReleased()- Specified by:
onReleased
in interfaceIPooledObject
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
alloc
-
allocVector2
-