T
- the pooled resource typepublic interface Pooled<T>
Modifier and Type | Method and Description |
---|---|
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 alreadyCopyright © 2018 JBoss by Red Hat. All rights reserved.