@Stable public interface BatchLogObserver
Implementations should override either of `onNext` methods.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
BatchLogObserver.OnNextContext
Context passed to
onNext(cz.o2.proxima.storage.StreamElement). |
| Modifier and Type | Method and Description |
|---|---|
default void |
onCancelled()
Signalled when the reading is cancelled.
|
default void |
onCompleted()
Signalled when the reading is finished.
|
default boolean |
onError(java.lang.Throwable error)
Signaled when reading error occurs.
|
default boolean |
onNext(StreamElement element)
Read next data from the batch storage.
|
default boolean |
onNext(StreamElement element,
BatchLogObserver.OnNextContext context)
Read next data from the batch storage.
|
default boolean onNext(StreamElement element)
element - the retrieved data elementtrue to continue processing, false otherwisedefault boolean onNext(StreamElement element, BatchLogObserver.OnNextContext context)
element - the retrieved data elementcontext - context of the data elementtrue to continue processing, false otherwisedefault void onCompleted()
default void onCancelled()
default boolean onError(java.lang.Throwable error)
error - error caught during processingtrue to restart processing from beginning false to stop processingCopyright © 2017–2021. All rights reserved.