| 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 static final InternalLogger | |
| private static final int | |
| private int | |
| private final MessageSizeEstimator. | |
| private PendingWriteQueue. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| public long | |
| public Object | |
| public boolean | |
| private void | |
| public Promise | |
| 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 Future | removeAndTransfer(Function<Object, Future<Void>> transferFunc)
Removes a pending write operation and performs it via
|
| public Future | removeAndTransferAll(Function<Object, Future<Void>> transferFunc)
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. | |
| 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 | |
| sizeEstimatorHandle | back to summary |
|---|---|
| private final MessageSizeEstimator. | |
| tail | back to summary |
|---|---|
| private PendingWriteQueue. | |
| PendingWriteQueue | back to summary |
|---|---|
| public PendingWriteQueue(EventExecutor executor, MessageSizeEstimator. | |
| add | back to summary |
|---|---|
| public void add(Object msg, Promise<Void> 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 Promise Removes a pending write operation and release its 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 | |
| removeAndTransfer | back to summary |
|---|---|
| public Future Removes a pending write operation and performs it via
| |
| removeAndTransferAll | back to summary |
|---|---|
| public Future Remove all pending write operation and performs them via
| |
| safeFail | back to summary |
|---|---|
| private static void safeFail(Promise<Void> 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 Promise | |
| 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 Promise<Void> 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() | |