Package dev.restate.sdk.core
Enum MessageType
- java.lang.Object
-
- java.lang.Enum<MessageType>
-
- dev.restate.sdk.core.MessageType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MessageType>
public enum MessageType extends java.lang.Enum<MessageType>
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static shortAWAKEABLE_ENTRY_MESSAGE_TYPEstatic shortBACKGROUND_INVOKE_ENTRY_MESSAGE_TYPEstatic shortCLEAR_STATE_ENTRY_MESSAGE_TYPEstatic shortCOMBINATOR_AWAITABLE_ENTRY_MESSAGE_TYPEstatic shortCOMPLETE_AWAKEABLE_ENTRY_MESSAGE_TYPEstatic shortCOMPLETION_MESSAGE_TYPEstatic shortEND_MESSAGE_TYPEstatic shortENTRY_ACK_MESSAGE_TYPEstatic shortERROR_MESSAGE_TYPEstatic shortGET_STATE_ENTRY_MESSAGE_TYPEstatic shortINVOKE_ENTRY_MESSAGE_TYPEstatic shortOUTPUT_STREAM_ENTRY_MESSAGE_TYPEstatic shortPOLL_INPUT_STREAM_ENTRY_MESSAGE_TYPEstatic shortSET_STATE_ENTRY_MESSAGE_TYPEstatic shortSIDE_EFFECT_ENTRY_MESSAGE_TYPEstatic shortSLEEP_ENTRY_MESSAGE_TYPEstatic shortSTART_MESSAGE_TYPEstatic shortSUSPENSION_MESSAGE_TYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessageTypedecode(short value)shortencode()com.google.protobuf.Parser<? extends com.google.protobuf.MessageLite>messageParser()static MessageTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MessageType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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
-
PollInputStreamEntryMessage
public static final MessageType PollInputStreamEntryMessage
-
OutputStreamEntryMessage
public static final MessageType OutputStreamEntryMessage
-
GetStateEntryMessage
public static final MessageType GetStateEntryMessage
-
SetStateEntryMessage
public static final MessageType SetStateEntryMessage
-
ClearStateEntryMessage
public static final MessageType ClearStateEntryMessage
-
SleepEntryMessage
public static final MessageType SleepEntryMessage
-
InvokeEntryMessage
public static final MessageType InvokeEntryMessage
-
BackgroundInvokeEntryMessage
public static final MessageType BackgroundInvokeEntryMessage
-
AwakeableEntryMessage
public static final MessageType AwakeableEntryMessage
-
CompleteAwakeableEntryMessage
public static final MessageType CompleteAwakeableEntryMessage
-
SideEffectEntryMessage
public static final MessageType SideEffectEntryMessage
-
CombinatorAwaitableEntryMessage
public static final MessageType CombinatorAwaitableEntryMessage
-
-
Field Detail
-
START_MESSAGE_TYPE
public static final short START_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
COMPLETION_MESSAGE_TYPE
public static final short COMPLETION_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
SUSPENSION_MESSAGE_TYPE
public static final short SUSPENSION_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
ERROR_MESSAGE_TYPE
public static final short ERROR_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
ENTRY_ACK_MESSAGE_TYPE
public static final short ENTRY_ACK_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
END_MESSAGE_TYPE
public static final short END_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
POLL_INPUT_STREAM_ENTRY_MESSAGE_TYPE
public static final short POLL_INPUT_STREAM_ENTRY_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
OUTPUT_STREAM_ENTRY_MESSAGE_TYPE
public static final short OUTPUT_STREAM_ENTRY_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
GET_STATE_ENTRY_MESSAGE_TYPE
public static final short GET_STATE_ENTRY_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
SET_STATE_ENTRY_MESSAGE_TYPE
public static final short SET_STATE_ENTRY_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
CLEAR_STATE_ENTRY_MESSAGE_TYPE
public static final short CLEAR_STATE_ENTRY_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
SLEEP_ENTRY_MESSAGE_TYPE
public static final short SLEEP_ENTRY_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
INVOKE_ENTRY_MESSAGE_TYPE
public static final short INVOKE_ENTRY_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
BACKGROUND_INVOKE_ENTRY_MESSAGE_TYPE
public static final short BACKGROUND_INVOKE_ENTRY_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
AWAKEABLE_ENTRY_MESSAGE_TYPE
public static final short AWAKEABLE_ENTRY_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
COMPLETE_AWAKEABLE_ENTRY_MESSAGE_TYPE
public static final short COMPLETE_AWAKEABLE_ENTRY_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
COMBINATOR_AWAITABLE_ENTRY_MESSAGE_TYPE
public static final short COMBINATOR_AWAITABLE_ENTRY_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
SIDE_EFFECT_ENTRY_MESSAGE_TYPE
public static final short SIDE_EFFECT_ENTRY_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static MessageType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MessageType c : MessageType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.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
-
-