onFrame(Frame, Callback, boolean) is called.
Subsequent calls to transform(Callback) are made on each callback success until one of these calls returns
true to indicate they are done processing the frame and are ready to receive a new one.
The Callback passed in to both these method must be succeeded in order to continue processing.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final Queue | |
| private Throwable | |
| private boolean | |
| private final IteratingCallback | |
| private final AutoLock | |
| private final Logger | |
| private static final Throwable |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | failFlusher(Throwable
the failure. t)Used to fail this flusher possibly from an external event such as a callback. |
| private void | |
| private void | |
| private void | |
| protected abstract boolean | |
| private FrameEntry | |
| public final void | |
| protected abstract boolean | Returns: true to indicate that you have finished transforming this frame.used to signal to start processing again. callback)Called to transform the frame given in |
| entries | back to summary |
|---|---|
| private final Queue<FrameEntry> entries | |
| failure | back to summary |
|---|---|
| private Throwable failure | |
| finished | back to summary |
|---|---|
| private boolean finished | |
| flusher | back to summary |
|---|---|
| private final IteratingCallback flusher | |
| lock | back to summary |
|---|---|
| private final AutoLock lock | |
| log | back to summary |
|---|---|
| private final Logger log | |
| SENTINEL_CLOSE_EXCEPTION | back to summary |
|---|---|
| private static final Throwable SENTINEL_CLOSE_EXCEPTION | |
| TransformingFlusher | back to summary |
|---|---|
| public TransformingFlusher() | |
| closeFlusher | back to summary |
|---|---|
| public void closeFlusher() Used to close this flusher when there is no explicit failure. | |
| failFlusher | back to summary |
|---|---|
| public void failFlusher(Throwable t) Used to fail this flusher possibly from an external event such as a callback.
| |
| notifyCallbackFailure | back to summary |
|---|---|
| private void notifyCallbackFailure(Callback callback, Throwable failure) | |
| notifyCallbackSuccess | back to summary |
|---|---|
| private void notifyCallbackSuccess(Callback callback) | |
| onFailure | back to summary |
|---|---|
| private void onFailure(Throwable t) | |
| onFrame | back to summary |
|---|---|
| protected abstract boolean onFrame(Frame frame, Callback callback, boolean batch) Called when a frame is ready to be transformed. | |
| pollEntry | back to summary |
|---|---|
| private FrameEntry pollEntry() | |
| sendFrame | back to summary |
|---|---|
| public final void sendFrame(Frame frame, Callback callback, boolean batch) | |
| transform | back to summary |
|---|---|
| protected abstract boolean transform(Callback callback) Called to transform the frame given in
| |
| Modifier and Type | Field and Description |
|---|---|
| private FrameEntry |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected void | onCompleteFailure(Throwable
the throwable to indicate cause of failure t)Overrides org. Invoked when the overall task has completed with a failure. |
| protected IteratingCallback. | process()
Implements abstract org. Method called by |
| current | back to summary |
|---|---|
| private FrameEntry current | |
| Flusher | back to summary |
|---|---|
| private Flusher() | |
| onCompleteFailure | back to summary |
|---|---|
| protected void onCompleteFailure(Throwable t) 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:
| |