| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private RetainableByteBuffer | |
| private final ByteBufferPool | |
| private final List | |
| private final int | |
| private final LongAdder | |
| private boolean | |
| private static final Throwable | |
| private Throwable | |
| private final EndPoint | |
| private final List | |
| private final List | |
| public static final Frame | |
| private boolean | |
| private final Generator | |
| private long | |
| private final AutoLock | |
| private static final Logger | |
| private final int | |
| private final LongAdder | |
| private final List | |
| private final Deque | |
| private List | |
| private final Scheduler | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | FrameFlusher(ByteBufferPool bufferPool, Scheduler scheduler, Generator generator, EndPoint endPoint, int bufferSize, int maxGather)
|
| Modifier and Type | Method and Description |
|---|---|
| private RetainableByteBuffer | |
| public boolean | Returns: returns true if the frame was enqueued and iterate needs to be called, returns false if the FrameFlusher was closedThe frame to queue frame, Callback The callback to call once the frame is sent callback, boolean True if batch mode is to be used batch)Enqueue a Frame to be written to the endpoint. |
| public long | |
| public long | |
| public long | |
| private int | |
| public boolean | |
| protected void | |
| protected void | |
| public void | |
| public void | onCompleteFailure(Throwable
the throwable to indicate cause of failure failure)Overrides org. Invoked when the overall task has completed with a failure. |
| protected IteratingCallback. | process()
Implements abstract org. Method called by |
| private void | |
| public void | |
| public void | |
| public void | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| batchBuffer | back to summary |
|---|---|
| private RetainableByteBuffer batchBuffer | |
| bufferPool | back to summary |
|---|---|
| private final ByteBufferPool bufferPool | |
| buffers | back to summary |
|---|---|
| private final List<ByteBuffer> buffers | |
| bufferSize | back to summary |
|---|---|
| private final int bufferSize | |
| bytesOut | back to summary |
|---|---|
| private final LongAdder bytesOut | |
| canEnqueue | back to summary |
|---|---|
| private boolean canEnqueue | |
| CLOSED_CHANNEL | back to summary |
|---|---|
| private static final Throwable CLOSED_CHANNEL | |
| closedCause | back to summary |
|---|---|
| private Throwable closedCause | |
| endPoint | back to summary |
|---|---|
| private final EndPoint endPoint | |
| entries | back to summary |
|---|---|
| private final List<FrameFlusher. | |
| failedEntries | back to summary |
|---|---|
| private final List<FrameFlusher. | |
| FLUSH_FRAME | back to summary |
|---|---|
| public static final Frame FLUSH_FRAME | |
| flushed | back to summary |
|---|---|
| private boolean flushed | |
| generator | back to summary |
|---|---|
| private final Generator generator | |
| idleTimeout | back to summary |
|---|---|
| private long idleTimeout | |
| lock | back to summary |
|---|---|
| private final AutoLock lock | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| maxGather | back to summary |
|---|---|
| private final int maxGather | |
| messagesOut | back to summary |
|---|---|
| private final LongAdder messagesOut | |
| previousEntries | back to summary |
|---|---|
| private final List<FrameFlusher. | |
| queue | back to summary |
|---|---|
| private final Deque<FrameFlusher. | |
| releasableBuffers | back to summary |
|---|---|
| private List<RetainableByteBuffer> releasableBuffers | |
| timeoutScheduler | back to summary |
|---|---|
| private final Scheduler timeoutScheduler | |
| useDirectByteBuffers | back to summary |
|---|---|
| private boolean useDirectByteBuffers | |
| FrameFlusher | back to summary |
|---|---|
| public FrameFlusher(ByteBufferPool bufferPool, Scheduler scheduler, Generator generator, EndPoint endPoint, int bufferSize, int maxGather) | |
| acquireBuffer | back to summary |
|---|---|
| private RetainableByteBuffer acquireBuffer(int capacity) | |
| enqueue | back to summary |
|---|---|
| public boolean enqueue(Frame frame, Callback callback, boolean batch) Enqueue a Frame to be written to the endpoint. | |
| getBytesOut | back to summary |
|---|---|
| public long getBytesOut() | |
| getIdleTimeout | back to summary |
|---|---|
| public long getIdleTimeout() | |
| getMessagesOut | back to summary |
|---|---|
| public long getMessagesOut() | |
| getQueueSize | back to summary |
|---|---|
| private int getQueueSize() | |
| isUseDirectByteBuffers | back to summary |
|---|---|
| public boolean isUseDirectByteBuffers() | |
| notifyCallbackFailure | back to summary |
|---|---|
| protected void notifyCallbackFailure(Callback callback, Throwable failure) | |
| notifyCallbackSuccess | back to summary |
|---|---|
| protected void notifyCallbackSuccess(Callback callback) | |
| onClose | back to summary |
|---|---|
| public void onClose(Throwable cause) | |
| onCompleteFailure | back to summary |
|---|---|
| public void onCompleteFailure(Throwable failure) Overrides org. Doc from org. Invoked when the overall task has completed with a failure. | |
| process | back to summary |
|---|---|
| protected IteratingCallback. Implements abstract org. Doc from org. Method called by Implementations must initiate the asynchronous execution of the sub-task (if any) and return an appropriate action:
| |
| releaseAggregate | back to summary |
|---|---|
| private void releaseAggregate() | |
| setIdleTimeout | back to summary |
|---|---|
| public void setIdleTimeout(long idleTimeout) | |
| setUseDirectByteBuffers | back to summary |
|---|---|
| public void setUseDirectByteBuffers(boolean useDirectByteBuffers) | |
| timeoutExpired | back to summary |
|---|---|
| public void timeoutExpired() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| private final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private long | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| timeOfCreation | back to summary |
|---|---|
| private final long timeOfCreation | |
| Entry | back to summary |
|---|---|
| private Entry(Frame frame, Callback callback, boolean batch) | |
| getTimeOfCreation | back to summary |
|---|---|
| private long getTimeOfCreation() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |