public class FrameFlusher extends IteratingCallback
Callback.Completable, Callback.Completing, Callback.InvocableCallback, Callback.NestedInvocable.InvocationType| Modifier and Type | Field and Description |
|---|---|
static BinaryFrame |
FLUSH_FRAME |
__nonBlocking| Constructor and Description |
|---|
FrameFlusher(ByteBufferPool bufferPool,
Generator generator,
EndPoint endPoint,
int bufferSize,
int maxGather) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
enqueue(Frame frame,
WriteCallback callback,
BatchMode batchMode) |
long |
getBytesOut() |
long |
getMessagesOut() |
void |
onCompleteFailure(Throwable failure)
Invoked when the overall task has completed with a failure.
|
void |
succeeded()
Invoked when the sub task succeeds.
|
String |
toString() |
close, failed, isClosed, isFailed, isSucceeded, iterate, resetequals, getClass, hashCode, notify, notifyAll, wait, wait, waitcombine, from, from, from, from, from, fromcombine, getInvocationType, getInvocationType, invokeNonBlocking, isNonBlockingInvocationpublic static final BinaryFrame FLUSH_FRAME
public FrameFlusher(ByteBufferPool bufferPool, Generator generator, EndPoint endPoint, int bufferSize, int maxGather)
public boolean enqueue(Frame frame, WriteCallback callback, BatchMode batchMode)
public void succeeded()
IteratingCallbacksuper.succeeded().succeeded in interface Callbacksucceeded in class IteratingCallbackCallback.failed(Throwable)public void onCompleteFailure(Throwable failure)
IteratingCallbackfailure - the throwable to indicate cause of failureIteratingCallback.onCompleteSuccess()public long getMessagesOut()
public long getBytesOut()
public String toString()
toString in class IteratingCallbackCopyright © 2010 - 2020 Adobe. All Rights Reserved