ChannelFuture instances which will get notified once some amount of
data was written and so a checkpoint was reached.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final Queue | |
| private final boolean | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | ChannelFlushPromiseNotifier(boolean
if tryNotify)true the ChannelPromises will get notified with
ChannelPromise#trySuccess() and ChannelPromise#tryFailure(Throwable).
Otherwise ChannelPromise#setSuccess() and ChannelPromise#setFailure(Throwable)
is usedCreate a new instance |
| public | ChannelFlushPromiseNotifier()
Create a new instance which will use |
| Modifier and Type | Method and Description |
|---|---|
| public ChannelFlushPromiseNotifier | |
| public ChannelFlushPromiseNotifier | add(ChannelPromise promise, long pendingDataSize)
Add a |
| public ChannelFlushPromiseNotifier | |
| public ChannelFlushPromiseNotifier | |
| public ChannelFlushPromiseNotifier | |
| public ChannelFlushPromiseNotifier | notifyFlushFutures(Throwable cause1, Throwable cause2)
Deprecated
use
notifyPromises(Throwable, Throwable)
|
| public ChannelFlushPromiseNotifier | notifyPromises()
Notify all |
| public ChannelFlushPromiseNotifier | notifyPromises(Throwable cause)
Notify all |
| public ChannelFlushPromiseNotifier | notifyPromises(Throwable
the cause1, Throwable Throwable which will be used to fail all of the ChannelFutures which
pendingDataSize is smaller then the current writeCounter returned by writeCounter()the cause2)Throwable which will be used to fail the remaining ChannelFuturesNotify all |
| private void | |
| public long |
| flushCheckpoints | back to summary |
|---|---|
| private final Queue<ChannelFlushPromiseNotifier. | |
| tryNotify | back to summary |
|---|---|
| private final boolean tryNotify | |
| writeCounter | back to summary |
|---|---|
| private long writeCounter | |
| ChannelFlushPromiseNotifier | back to summary |
|---|---|
| public ChannelFlushPromiseNotifier(boolean tryNotify) Create a new instance
| |
| ChannelFlushPromiseNotifier | back to summary |
|---|---|
| public ChannelFlushPromiseNotifier() Create a new instance which will use | |
| add | back to summary |
|---|---|
| public ChannelFlushPromiseNotifier add(ChannelPromise promise, int pendingDataSize)
Deprecated
| |
| add | back to summary |
|---|---|
| public ChannelFlushPromiseNotifier add(ChannelPromise promise, long pendingDataSize) Add a | |
| increaseWriteCounter | back to summary |
|---|---|
| public ChannelFlushPromiseNotifier increaseWriteCounter(long delta) Increase the current write counter by the given delta | |
| notifyFlushFutures | back to summary |
|---|---|
| public ChannelFlushPromiseNotifier notifyFlushFutures()
Deprecated use
| |
| notifyFlushFutures | back to summary |
|---|---|
| public ChannelFlushPromiseNotifier notifyFlushFutures(Throwable cause)
Deprecated
| |
| notifyFlushFutures | back to summary |
|---|---|
| public ChannelFlushPromiseNotifier notifyFlushFutures(Throwable cause1, Throwable cause2)
Deprecated
| |
| notifyPromises | back to summary |
|---|---|
| public ChannelFlushPromiseNotifier notifyPromises() Notify all | |
| notifyPromises | back to summary |
|---|---|
| public ChannelFlushPromiseNotifier notifyPromises(Throwable cause) Notify all | |
| notifyPromises | back to summary |
|---|---|
| public ChannelFlushPromiseNotifier notifyPromises(Throwable cause1, Throwable cause2) Notify all
| |
| notifyPromises0 | back to summary |
|---|---|
| private void notifyPromises0(Throwable cause) | |
| writeCounter | back to summary |
|---|---|
| public long writeCounter() Return the current write counter of this | |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private final ChannelPromise |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public void | flushCheckpoint(long checkpoint)
Implements io. |
| public ChannelPromise |
| checkpoint | back to summary |
|---|---|
| private long checkpoint | |
| future | back to summary |
|---|---|
| private final ChannelPromise future | |
| DefaultFlushCheckpoint | back to summary |
|---|---|
| pack-priv DefaultFlushCheckpoint(long checkpoint, ChannelPromise future) | |
| flushCheckpoint | back to summary |
|---|---|
| public long flushCheckpoint() Implements io.
| |
| flushCheckpoint | back to summary |
|---|---|
| public void flushCheckpoint(long checkpoint) Implements io.
| |
| promise | back to summary |
|---|---|
| public ChannelPromise promise() Implements io.
| |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public void | |
| public ChannelPromise |
| flushCheckpoint | back to summary |
|---|---|
| public long flushCheckpoint() | |
| flushCheckpoint | back to summary |
|---|---|
| public void flushCheckpoint(long checkpoint) | |
| promise | back to summary |
|---|---|
| public ChannelPromise promise() | |