Interface Continuation


  • public interface Continuation
    • 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