AsyncQueueWriter implementation, based on the Java NIO
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Attribute | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| COMPOSITE_BUFFER_ATTR | back to summary |
|---|---|
| private static final Attribute<TCPNIOAsyncQueueWriter. | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER Hides org. | |
| TCPNIOAsyncQueueWriter | back to summary |
|---|---|
| public TCPNIOAsyncQueueWriter(final NIOTransport transport) | |
| aggregate | back to summary |
|---|---|
| protected AsyncWriteQueueRecord aggregate(final TaskQueue<AsyncWriteQueueRecord> writeTaskQueue) Overrides org. Doc from org. Aggregates records in a queue to be written as one chunk.
| |
| canBeAggregated | back to summary |
|---|---|
| private static boolean canBeAggregated(final AsyncWriteQueueRecord record) | |
| checkAndGetNextRecord | back to summary |
|---|---|
| private static AsyncWriteQueueRecord checkAndGetNextRecord(final TaskQueue<AsyncWriteQueueRecord> writeTaskQueue) | |
| createCompositeQueueRecord | back to summary |
|---|---|
| private TCPNIOAsyncQueueWriter. | |
| fill | back to summary |
|---|---|
| private static void fill(final TCPNIOAsyncQueueWriter. | |
| onReadyToWrite | back to summary |
|---|---|
| protected void onReadyToWrite(final NIOConnection connection) throws IOException Implements abstract org.
| |
| update | back to summary |
|---|---|
| private RecordWriteResult | |
| write0 | back to summary |
|---|---|
| protected RecordWriteResult Implements abstract org.
| |
| write0 | back to summary |
|---|---|
protected long write0(final NIOConnection connection, final WritableMessage message, final WriteResult<WritableMessage, SocketAddress> currentResult) throws IOException
| |
| writeCompositeRecord | back to summary |
|---|---|
| private RecordWriteResult | |
| Modifier and Type | Field and Description |
|---|---|
| private final Deque | |
| private final ArrayList | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | |
| public static TCPNIOAsyncQueueWriter. | |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public long |
| queue | back to summary |
|---|---|
| private final Deque<AsyncWriteQueueRecord> queue | |
| savedBufferStates | back to summary |
|---|---|
| private final ArrayList<BufferArray> savedBufferStates | |
| size | back to summary |
|---|---|
| private int size | |
| CompositeQueueRecord | back to summary |
|---|---|
| public CompositeQueueRecord(final Connection<L> connection) | |
| append | back to summary |
|---|---|
| public void append(final AsyncWriteQueueRecord queueRecord) | |
| canBeAggregated | back to summary |
|---|---|
| public boolean canBeAggregated() Overrides org.
| |
| create | back to summary |
|---|---|
| public static TCPNIOAsyncQueueWriter. | |
| isFinished | back to summary |
|---|---|
| public boolean isFinished() Overrides org.
| |
| isUncountable | back to summary |
|---|---|
| public boolean isUncountable() Overrides org.
| |
| notifyCompleteAndRecycle | back to summary |
|---|---|
| public void notifyCompleteAndRecycle() Overrides org.
| |
| notifyFailure | back to summary |
|---|---|
| public void notifyFailure(final Throwable e) Overrides org.
| |
| recycle | back to summary |
|---|---|
| public void recycle() Overrides org. Implements org.
| |
| remaining | back to summary |
|---|---|
| public long remaining() Overrides org.
| |