AbstractChannel to store its pending
outbound write requests.
All methods must be called by a transport implementation from an I/O thread, except the following ones:
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| private boolean | |
| private final EventExecutor | |
| private int | |
| private ChannelOutboundBuffer. | |
| private boolean | |
| private static final InternalLogger | |
| private ChannelOutboundBuffer. | |
| private volatile long | |
| private ChannelOutboundBuffer. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | addMessage(Object msg, int size, Promise<Void> promise)
Add given message to this |
| private void | |
| pack-priv Object | current()
Return the current message to write or |
| private void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | forEachFlushedMessage(Predicate<Object> processor)
Call |
| private void | |
| pack-priv boolean | isEmpty()
Returns |
| private boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| private boolean | |
| private void | |
| private static void | |
| private static void | |
| pack-priv int | |
| pack-priv long |
| CHANNEL_OUTBOUND_BUFFER_ENTRY_OVERHEAD | back to summary |
|---|---|
| pack-priv static final int CHANNEL_OUTBOUND_BUFFER_ENTRY_OVERHEAD | |
| closed | back to summary |
|---|---|
| private boolean closed | |
| executor | back to summary |
|---|---|
| private final EventExecutor executor | |
| flushed | back to summary |
|---|---|
| private int flushed | |
| flushedEntry | back to summary |
|---|---|
| private ChannelOutboundBuffer. | |
| inFail | back to summary |
|---|---|
| private boolean inFail | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| tailEntry | back to summary |
|---|---|
| private ChannelOutboundBuffer. | |
| totalPendingSize | back to summary |
|---|---|
| private volatile long totalPendingSize | |
| unflushedEntry | back to summary |
|---|---|
| private ChannelOutboundBuffer. | |
| ChannelOutboundBuffer | back to summary |
|---|---|
pack-priv ChannelOutboundBuffer(EventExecutor executor)
| |
| addFlush | back to summary |
|---|---|
| pack-priv void addFlush() Add a flush to this | |
| addMessage | back to summary |
|---|---|
| pack-priv void addMessage(Object msg, int size, Promise<Void> promise) Add given message to this | |
| close | back to summary |
|---|---|
| private void close(final Throwable cause) | |
| current | back to summary |
|---|---|
| pack-priv Object current() Return the current message to write or | |
| decrementPendingOutboundBytes | back to summary |
|---|---|
| private void decrementPendingOutboundBytes(long size) | |
| failFlushed | back to summary |
|---|---|
| pack-priv void failFlushed(Throwable cause) | |
| failFlushedAndClose | back to summary |
|---|---|
| pack-priv void failFlushedAndClose(Throwable failCause, Throwable closeCause) | |
| forEachFlushedMessage | back to summary |
|---|---|
| pack-priv void forEachFlushedMessage(Predicate<Object> processor) Call | |
| incrementPendingOutboundBytes | back to summary |
|---|---|
| private void incrementPendingOutboundBytes(long size) | |
| isEmpty | back to summary |
|---|---|
| pack-priv boolean isEmpty() Returns | |
| isFlushedEntry | back to summary |
|---|---|
| private boolean isFlushedEntry(ChannelOutboundBuffer. | |
| remove | back to summary |
|---|---|
| pack-priv boolean remove() Will remove the current message, mark its | |
| remove | back to summary |
|---|---|
| pack-priv boolean remove(Throwable cause) Will remove the current message, mark its | |
| remove0 | back to summary |
|---|---|
| private boolean remove0(Throwable cause) | |
| removeEntry | back to summary |
|---|---|
| private void removeEntry(ChannelOutboundBuffer. | |
| safeFail | back to summary |
|---|---|
| private static void safeFail(Promise<Void> promise, Throwable cause) | |
| safeSuccess | back to summary |
|---|---|
| private static void safeSuccess(Promise<Void> promise) | |
| size | back to summary |
|---|---|
| pack-priv int size() Returns the number of flushed messages in this | |
| totalPendingWriteBytes | back to summary |
|---|---|
| pack-priv long totalPendingWriteBytes() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| private final ObjectPool. | |
| pack-priv Object | |
| pack-priv ChannelOutboundBuffer. | |
| pack-priv int | |
| pack-priv Promise | |
| private static final ObjectPool |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| pack-priv static ChannelOutboundBuffer. | |
| pack-priv void | |
| pack-priv ChannelOutboundBuffer. |
| cancelled | back to summary |
|---|---|
| pack-priv boolean cancelled | |
| handle | back to summary |
|---|---|
| private final ObjectPool. | |
| msg | back to summary |
|---|---|
| pack-priv Object msg | |
| next | back to summary |
|---|---|
| pack-priv ChannelOutboundBuffer. | |
| pendingSize | back to summary |
|---|---|
| pack-priv int pendingSize | |
| promise | back to summary |
|---|---|
| pack-priv Promise<Void> promise | |
| RECYCLER | back to summary |
|---|---|
| private static final ObjectPool<ChannelOutboundBuffer. | |
| Entry | back to summary |
|---|---|
| private Entry(ObjectPool. | |
| cancel | back to summary |
|---|---|
| pack-priv int cancel() | |
| newInstance | back to summary |
|---|---|
| pack-priv static ChannelOutboundBuffer. | |
| recycle | back to summary |
|---|---|
| pack-priv void recycle() | |
| recycleAndGetNext | back to summary |
|---|---|
| pack-priv ChannelOutboundBuffer. | |