T - The type of the resource containedpublic interface ScopedResource<T> extends Closeable
close() is called.
Do not keep a reference to the contained resource beyond the scope.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Signifies the end of the scope, will return the resource to the "pool" for use by other acquirers
|
T |
get()
Get the contained resource
|
T get()
void close()
close in interface AutoCloseableclose in interface CloseableCopyright © 2024. All rights reserved.