Enum Class MessageType

java.lang.Object
java.lang.Enum<MessageType>
dev.restate.sdk.core.MessageType
All Implemented Interfaces:
Serializable, Comparable<MessageType>, Constable

public enum MessageType extends Enum<MessageType>
  • Enum Constant Details

    • StartMessage

      public static final MessageType StartMessage
    • CompletionMessage

      public static final MessageType CompletionMessage
    • SuspensionMessage

      public static final MessageType SuspensionMessage
    • ErrorMessage

      public static final MessageType ErrorMessage
    • EndMessage

      public static final MessageType EndMessage
    • EntryAckMessage

      public static final MessageType EntryAckMessage
    • InputEntryMessage

      public static final MessageType InputEntryMessage
    • OutputEntryMessage

      public static final MessageType OutputEntryMessage
    • GetStateEntryMessage

      public static final MessageType GetStateEntryMessage
    • SetStateEntryMessage

      public static final MessageType SetStateEntryMessage
    • ClearStateEntryMessage

      public static final MessageType ClearStateEntryMessage
    • ClearAllStateEntryMessage

      public static final MessageType ClearAllStateEntryMessage
    • GetStateKeysEntryMessage

      public static final MessageType GetStateKeysEntryMessage
    • GetPromiseEntryMessage

      public static final MessageType GetPromiseEntryMessage
    • PeekPromiseEntryMessage

      public static final MessageType PeekPromiseEntryMessage
    • CompletePromiseEntryMessage

      public static final MessageType CompletePromiseEntryMessage
    • SleepEntryMessage

      public static final MessageType SleepEntryMessage
    • CallEntryMessage

      public static final MessageType CallEntryMessage
    • OneWayCallEntryMessage

      public static final MessageType OneWayCallEntryMessage
    • AwakeableEntryMessage

      public static final MessageType AwakeableEntryMessage
    • CompleteAwakeableEntryMessage

      public static final MessageType CompleteAwakeableEntryMessage
    • RunEntryMessage

      public static final MessageType RunEntryMessage
    • CombinatorAwaitableEntryMessage

      public static final MessageType CombinatorAwaitableEntryMessage
  • Field Details

    • START_MESSAGE_TYPE

      public static final short START_MESSAGE_TYPE
      See Also:
    • COMPLETION_MESSAGE_TYPE

      public static final short COMPLETION_MESSAGE_TYPE
      See Also:
    • SUSPENSION_MESSAGE_TYPE

      public static final short SUSPENSION_MESSAGE_TYPE
      See Also:
    • ERROR_MESSAGE_TYPE

      public static final short ERROR_MESSAGE_TYPE
      See Also:
    • ENTRY_ACK_MESSAGE_TYPE

      public static final short ENTRY_ACK_MESSAGE_TYPE
      See Also:
    • END_MESSAGE_TYPE

      public static final short END_MESSAGE_TYPE
      See Also:
    • INPUT_ENTRY_MESSAGE_TYPE

      public static final short INPUT_ENTRY_MESSAGE_TYPE
      See Also:
    • OUTPUT_ENTRY_MESSAGE_TYPE

      public static final short OUTPUT_ENTRY_MESSAGE_TYPE
      See Also:
    • GET_STATE_ENTRY_MESSAGE_TYPE

      public static final short GET_STATE_ENTRY_MESSAGE_TYPE
      See Also:
    • SET_STATE_ENTRY_MESSAGE_TYPE

      public static final short SET_STATE_ENTRY_MESSAGE_TYPE
      See Also:
    • CLEAR_STATE_ENTRY_MESSAGE_TYPE

      public static final short CLEAR_STATE_ENTRY_MESSAGE_TYPE
      See Also:
    • CLEAR_ALL_STATE_ENTRY_MESSAGE_TYPE

      public static final short CLEAR_ALL_STATE_ENTRY_MESSAGE_TYPE
      See Also:
    • GET_STATE_KEYS_ENTRY_MESSAGE_TYPE

      public static final short GET_STATE_KEYS_ENTRY_MESSAGE_TYPE
      See Also:
    • GET_PROMISE_ENTRY_MESSAGE_TYPE

      public static final short GET_PROMISE_ENTRY_MESSAGE_TYPE
      See Also:
    • PEEK_PROMISE_ENTRY_MESSAGE_TYPE

      public static final short PEEK_PROMISE_ENTRY_MESSAGE_TYPE
      See Also:
    • COMPLETE_PROMISE_ENTRY_MESSAGE_TYPE

      public static final short COMPLETE_PROMISE_ENTRY_MESSAGE_TYPE
      See Also:
    • SLEEP_ENTRY_MESSAGE_TYPE

      public static final short SLEEP_ENTRY_MESSAGE_TYPE
      See Also:
    • INVOKE_ENTRY_MESSAGE_TYPE

      public static final short INVOKE_ENTRY_MESSAGE_TYPE
      See Also:
    • BACKGROUND_INVOKE_ENTRY_MESSAGE_TYPE

      public static final short BACKGROUND_INVOKE_ENTRY_MESSAGE_TYPE
      See Also:
    • AWAKEABLE_ENTRY_MESSAGE_TYPE

      public static final short AWAKEABLE_ENTRY_MESSAGE_TYPE
      See Also:
    • COMPLETE_AWAKEABLE_ENTRY_MESSAGE_TYPE

      public static final short COMPLETE_AWAKEABLE_ENTRY_MESSAGE_TYPE
      See Also:
    • COMBINATOR_AWAITABLE_ENTRY_MESSAGE_TYPE

      public static final short COMBINATOR_AWAITABLE_ENTRY_MESSAGE_TYPE
      See Also:
    • SIDE_EFFECT_ENTRY_MESSAGE_TYPE

      public static final short SIDE_EFFECT_ENTRY_MESSAGE_TYPE
      See Also:
  • Method Details

    • values

      public static MessageType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MessageType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • messageParser

      public com.google.protobuf.Parser<? extends com.google.protobuf.MessageLite> messageParser()
    • encode

      public short encode()
    • decode

      public static MessageType decode(short value) throws ProtocolException
      Throws:
      ProtocolException
    • fromMessage

      public static MessageType fromMessage(com.google.protobuf.MessageLite msg)