| Modifier and Type | Field and Description |
|---|---|
| private final ByteBufferPool | |
| private final int | |
| private final boolean | |
| private final Pool |
| Access | Constructor and Description |
|---|---|
| public | XnioByteBufferPool(Pool<ByteBuffer> pool)
References Deprecated
Pool is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Modifier and Type | Method and Description |
|---|---|
| public PooledByteBuffer | |
| public void | close()
Implements io. Closes this stream and releases any system resources associated with it. |
| public ByteBufferPool | getArrayBackedPool()
Implements io. If this byte buffer pool corresponds to an array backed pool then this will return itself. |
| public int | |
| public boolean |
| arrayBackedPool | back to summary |
|---|---|
| private final ByteBufferPool arrayBackedPool | |
| bufferSize | back to summary |
|---|---|
| private final int bufferSize | |
| direct | back to summary |
|---|---|
| private final boolean direct | |
| pool | back to summary |
|---|---|
| private final Pool<ByteBuffer> pool
References Deprecated
See corresponding docs for further information. | |
| XnioByteBufferPool | back to summary |
|---|---|
| public XnioByteBufferPool(Pool<ByteBuffer> pool)
References Deprecated
See corresponding docs for further information. | |
| allocate | back to summary |
|---|---|
| public PooledByteBuffer allocate() Implements io.
| |
| close | back to summary |
|---|---|
| public void close() Implements io. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| getArrayBackedPool | back to summary |
|---|---|
| public ByteBufferPool getArrayBackedPool() Implements io. Doc from io. If this byte buffer pool corresponds to an array backed pool then this will return itself. Otherwise it will return an array backed pool that contains buffers of the same size.
| |
| getBufferSize | back to summary |
|---|---|
| public int getBufferSize() Implements io.
| |
| isDirect | back to summary |
|---|---|
| public boolean isDirect() Implements io.
| |