T - the pooled resource typeByteBufferPool.public interface Pooled<T> extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
Delegates to
free(). |
void |
discard()
Deprecated.
Discard this resource.
|
void |
free()
Deprecated.
Free this resource for immediate re-use.
|
T |
getResource()
Deprecated.
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 © 2017 JBoss by Red Hat. All rights reserved.