ByteBufferPool, java.io.Closeable, java.lang.AutoCloseablepublic class XnioByteBufferPool extends java.lang.Object implements ByteBufferPool
| Constructor | Description |
|---|---|
XnioByteBufferPool(org.xnio.Pool<java.nio.ByteBuffer> pool) |
| Modifier and Type | Method | Description |
|---|---|---|
PooledByteBuffer |
allocate() |
|
void |
close() |
|
ByteBufferPool |
getArrayBackedPool() |
If this byte buffer pool corresponds to an array backed pool then this will return itself.
|
int |
getBufferSize() |
|
boolean |
isDirect() |
public XnioByteBufferPool(org.xnio.Pool<java.nio.ByteBuffer> pool)
public PooledByteBuffer allocate()
allocate in interface ByteBufferPoolpublic ByteBufferPool getArrayBackedPool()
ByteBufferPoolgetArrayBackedPool in interface ByteBufferPoolpublic void close()
close in interface java.lang.AutoCloseableclose in interface ByteBufferPoolclose in interface java.io.Closeablepublic int getBufferSize()
getBufferSize in interface ByteBufferPoolpublic boolean isDirect()
isDirect in interface ByteBufferPoolCopyright © 2018. All rights reserved.