Channel, so that
the pending write operations are also considered to determine the writability.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | PendingWriteQueue.PendingWrite
Holds all meta-data and construct the linked-list structure. |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private final EventExecutor | |
| private PendingWriteQueue. | |
| private final ChannelOutboundInvoker | |
| private static final InternalLogger | |
| private static final int | |
| private int | |
| private PendingWriteQueue. | |
| private final PendingBytesTracker |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| public long | |
| public Object | |
| public boolean | |
| private void | |
| public ChannelPromise | remove()
Removes a pending write operation and release it's message via |
| public void | removeAndFail(Throwable cause)
Remove a pending write operation and fail it with the given |
| public void | removeAndFailAll(Throwable cause)
Remove all pending write operation and fail them with the given |
| public ChannelFuture | removeAndWrite()
Removes a pending write operation and performs it via
|
| public ChannelFuture | removeAndWriteAll()
Remove all pending write operation and performs them via
|
| private static void | |
| public int | |
| private int |
| bytes | back to summary |
|---|---|
| private long bytes | |
| executor | back to summary |
|---|---|
| private final EventExecutor executor | |
| head | back to summary |
|---|---|
| private PendingWriteQueue. | |
| invoker | back to summary |
|---|---|
| private final ChannelOutboundInvoker invoker | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| PENDING_WRITE_OVERHEAD | back to summary |
|---|---|
| private static final int PENDING_WRITE_OVERHEAD | |
| size | back to summary |
|---|---|
| private int size | |
| tail | back to summary |
|---|---|
| private PendingWriteQueue. | |
| tracker | back to summary |
|---|---|
| private final PendingBytesTracker tracker | |
| PendingWriteQueue | back to summary |
|---|---|
| public PendingWriteQueue(ChannelHandlerContext ctx) | |
| PendingWriteQueue | back to summary |
|---|---|
| public PendingWriteQueue(Channel channel) | |
| add | back to summary |
|---|---|
| public void add(Object msg, ChannelPromise promise) Add the given | |
| assertEmpty | back to summary |
|---|---|
| private void assertEmpty() | |
| bytes | back to summary |
|---|---|
| public long bytes() Returns the total number of bytes that are pending because of pending messages. This is only an estimate so it should only be treated as a hint. | |
| current | back to summary |
|---|---|
| public Object current() Return the current message or | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Returns | |
| recycle | back to summary |
|---|---|
| private void recycle(PendingWriteQueue. | |
| remove | back to summary |
|---|---|
| public ChannelPromise remove() Removes a pending write operation and release it's message via
| |
| removeAndFail | back to summary |
|---|---|
| public void removeAndFail(Throwable cause) Remove a pending write operation and fail it with the given | |
| removeAndFailAll | back to summary |
|---|---|
| public void removeAndFailAll(Throwable cause) Remove all pending write operation and fail them with the given | |
| removeAndWrite | back to summary |
|---|---|
| public ChannelFuture removeAndWrite() Removes a pending write operation and performs it via
| |
| removeAndWriteAll | back to summary |
|---|---|
| public ChannelFuture removeAndWriteAll() Remove all pending write operation and performs them via
| |
| safeFail | back to summary |
|---|---|
| private static void safeFail(ChannelPromise promise, Throwable cause) | |
| size | back to summary |
|---|---|
| public int size() Returns the number of pending write operations. | |
| size | back to summary |
|---|---|
| private int size(Object msg) | |
| Modifier and Type | Field and Description |
|---|---|
| private final ObjectPool. | |
| private Object | |
| private PendingWriteQueue. | |
| private ChannelPromise | |
| private static final ObjectPool | |
| private long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static PendingWriteQueue. | |
| private void |
| handle | back to summary |
|---|---|
| private final ObjectPool. | |
| msg | back to summary |
|---|---|
| private Object msg | |
| next | back to summary |
|---|---|
| private PendingWriteQueue. | |
| promise | back to summary |
|---|---|
| private ChannelPromise promise | |
| RECYCLER | back to summary |
|---|---|
| private static final ObjectPool<PendingWriteQueue. | |
| size | back to summary |
|---|---|
| private long size | |
| PendingWrite | back to summary |
|---|---|
| private PendingWrite(ObjectPool. | |
| newInstance | back to summary |
|---|---|
| pack-priv static PendingWriteQueue. | |
| recycle | back to summary |
|---|---|
| private void recycle() | |