public class PooledAdaptor extends Object implements org.xnio.Pooled<ByteBuffer>
| Constructor and Description |
|---|
PooledAdaptor(PooledByteBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
void | close() |
void | discard() |
void | free() |
ByteBuffer | getResource() |
public PooledAdaptor(PooledByteBuffer buffer)
public void discard()
discard in interface org.xnio.Pooled<ByteBuffer>public void free()
free in interface org.xnio.Pooled<ByteBuffer>public ByteBuffer getResource() throws IllegalStateException
getResource in interface org.xnio.Pooled<ByteBuffer>IllegalStateExceptionpublic void close()
close in interface AutoCloseableclose in interface org.xnio.Pooled<ByteBuffer>Copyright © 2020 JBoss by Red Hat. All rights reserved.