| Modifier and Type | Class and Description |
|---|---|
| public static interface | WriteBuffer.
Interface implemented by clients of the WriteBuffer to enable data to be written back out from the buffer. |
| Modifier and Type | Field and Description |
|---|---|
| private final LinkedBlockingDeque | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public void | |
| pack-priv void | |
| private ByteBufferHolder | |
| public boolean | |
| pack-priv ByteBuffer[] | Returns: an array of ByteBuffers from the current WriteBuffer prefixed by the provided ByteBuffersThe additional ByteBuffers to add to the start of the
array prefixes)Create an array of ByteBuffers from the current WriteBuffer, prefixing that array with the provided ByteBuffers. |
| pack-priv boolean | |
| public boolean |
| buffers | back to summary |
|---|---|
| private final LinkedBlockingDeque<ByteBufferHolder> buffers | |
| bufferSize | back to summary |
|---|---|
| private final int bufferSize | |
| WriteBuffer | back to summary |
|---|---|
| public WriteBuffer(int bufferSize) | |
| add | back to summary |
|---|---|
| pack-priv void add(byte[] buf, int offset, int length) | |
| add | back to summary |
|---|---|
| public void add(ByteBuffer from) | |
| clear | back to summary |
|---|---|
| pack-priv void clear() | |
| getByteBufferHolder | back to summary |
|---|---|
| private ByteBufferHolder getByteBufferHolder(int capacity) | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| toArray | back to summary |
|---|---|
| pack-priv ByteBuffer[] toArray(ByteBuffer... prefixes) Create an array of ByteBuffers from the current WriteBuffer, prefixing that array with the provided ByteBuffers.
| |
| write | back to summary |
|---|---|
| pack-priv boolean write(SocketWrapperBase<?> socketWrapper, boolean blocking) throws IOException | |
| write | back to summary |
|---|---|
| public boolean write(WriteBuffer. | |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| writeFromBuffer | back to summary |
|---|---|
| public boolean writeFromBuffer(ByteBuffer buffer, boolean block) throws IOException | |