Package dev.restate.sdk.core
Enum Class MessageType
- All Implemented Interfaces:
Serializable
,Comparable<MessageType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
Modifier and TypeFieldDescriptionstatic final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
-
Method Summary
Modifier and TypeMethodDescriptionstatic MessageType
decode
(short value) short
encode()
static MessageType
fromMessage
(com.google.protobuf.MessageLite msg) com.google.protobuf.Parser
<? extends com.google.protobuf.MessageLite> static MessageType
Returns the enum constant of this class with the specified name.static MessageType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
StartMessage
-
CompletionMessage
-
SuspensionMessage
-
ErrorMessage
-
EndMessage
-
EntryAckMessage
-
InputEntryMessage
-
OutputEntryMessage
-
GetStateEntryMessage
-
SetStateEntryMessage
-
ClearStateEntryMessage
-
ClearAllStateEntryMessage
-
GetStateKeysEntryMessage
-
GetPromiseEntryMessage
-
PeekPromiseEntryMessage
-
CompletePromiseEntryMessage
-
SleepEntryMessage
-
CallEntryMessage
-
OneWayCallEntryMessage
-
AwakeableEntryMessage
-
CompleteAwakeableEntryMessage
-
RunEntryMessage
-
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
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
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 nameNullPointerException
- if the argument is null
-
messageParser
public com.google.protobuf.Parser<? extends com.google.protobuf.MessageLite> messageParser() -
encode
public short encode() -
decode
- Throws:
ProtocolException
-
fromMessage
-