Interface Continuation
-
public interface Continuation
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Continuation.Reason
Reason why the continuation was generated in the first place.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
atBeginning()
default boolean
atEnd()
byte[]
getExecutionState()
Return the continuation's underlying (cursor) state.Continuation.Reason
getReason()
Returns the reason why the continuation was generated in the first place.byte[]
serialize()
Serialize the continuation (such that it can be transferred across the wire).
-
-
-
Method Detail
-
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
-
-