T - the pooled resource typepublic interface Pooled<T> extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Delegates to
free(). |
void |
discard()
Discard this resource.
|
void |
free()
Free this resource for immediate re-use.
|
T |
getResource()
Get the pooled resource.
|
void discard()
void free()
discard() instead.T getResource() throws IllegalStateException
IllegalStateException - if the resource has been freed or discarded alreadyvoid close()
free().close in interface AutoCloseableCopyright © 2016 JBoss by Red Hat. All rights reserved.