Package io.zeebe.protocol.record
Enum ValueType
- java.lang.Object
-
- java.lang.Enum<ValueType>
-
- io.zeebe.protocol.record.ValueType
-
- All Implemented Interfaces:
Serializable,Comparable<ValueType>
public enum ValueType extends Enum<ValueType>
The type of a record value
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEPLOYMENTDEPLOYMENT_DISTRIBUTIONERRORINCIDENTJOBJOB_BATCHMESSAGEMESSAGE_START_EVENT_SUBSCRIPTIONMESSAGE_SUBSCRIPTIONNULL_VALTo be used to represent not present or null.PROCESSPROCESS_EVENTPROCESS_INSTANCEPROCESS_INSTANCE_CREATIONPROCESS_INSTANCE_RESULTPROCESS_MESSAGE_SUBSCRIPTIONSBE_UNKNOWNTo be used to represent a unknown value from a later version.TIMERVARIABLEVARIABLE_DOCUMENT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ValueTypeget(short value)Lookup the enum value representing the value.shortvalue()The raw encoded value in the Java type representation.static ValueTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ValueType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JOB
public static final ValueType JOB
-
DEPLOYMENT
public static final ValueType DEPLOYMENT
-
PROCESS_INSTANCE
public static final ValueType PROCESS_INSTANCE
-
INCIDENT
public static final ValueType INCIDENT
-
MESSAGE
public static final ValueType MESSAGE
-
MESSAGE_SUBSCRIPTION
public static final ValueType MESSAGE_SUBSCRIPTION
-
PROCESS_MESSAGE_SUBSCRIPTION
public static final ValueType PROCESS_MESSAGE_SUBSCRIPTION
-
JOB_BATCH
public static final ValueType JOB_BATCH
-
TIMER
public static final ValueType TIMER
-
MESSAGE_START_EVENT_SUBSCRIPTION
public static final ValueType MESSAGE_START_EVENT_SUBSCRIPTION
-
VARIABLE
public static final ValueType VARIABLE
-
VARIABLE_DOCUMENT
public static final ValueType VARIABLE_DOCUMENT
-
PROCESS_INSTANCE_CREATION
public static final ValueType PROCESS_INSTANCE_CREATION
-
ERROR
public static final ValueType ERROR
-
PROCESS_INSTANCE_RESULT
public static final ValueType PROCESS_INSTANCE_RESULT
-
PROCESS
public static final ValueType PROCESS
-
DEPLOYMENT_DISTRIBUTION
public static final ValueType DEPLOYMENT_DISTRIBUTION
-
PROCESS_EVENT
public static final ValueType PROCESS_EVENT
-
SBE_UNKNOWN
public static final ValueType SBE_UNKNOWN
To be used to represent a unknown value from a later version.
-
NULL_VAL
public static final ValueType NULL_VAL
To be used to represent not present or null.
-
-
Method Detail
-
values
public static ValueType[] 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 (ValueType c : ValueType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValueType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
value
public short value()
The raw encoded value in the Java type representation.- Returns:
- the raw value encoded.
-
get
public static ValueType get(short value)
Lookup the enum value representing the value.- Parameters:
value- encoded to be looked up.- Returns:
- the enum value representing the value.
-
-