Interface Continuation
public interface Continuation
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Reason why the continuation was generated in the first place. -
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
default boolean
atEnd()
byte[]
Return the continuation's underlying (cursor) state.Returns the reason why the continuation was generated in the first place.byte[]
Serialize the continuation (such that it can be transferred across the wire).
-
Method Details
-
serialize
byte[] serialize()Serialize the continuation (such that it can be transferred across the wire). This will create a serialized version of the continuation's entire state, that can be later restored.- Returns:
- the serialized state of the continuation
-
getExecutionState
@Nullable byte[] getExecutionState()Return the continuation's underlying (cursor) state. This is the state that is representing the continuation's underlying cursor state.- Returns:
- the cursor state (if exists)
-
atBeginning
default boolean atBeginning() -
atEnd
default boolean atEnd() -
getReason
Continuation.Reason getReason()Returns the reason why the continuation was generated in the first place.- Returns:
- the reason
-