Package io.ably.lib.liveobjects.message
Enum Class ObjectOperationAction
- All Implemented Interfaces:
-
Serializable,Comparable<ObjectOperationAction>,Constable
The action of an
ObjectOperation, defining the type of operation that was
applied to an object on a channel.
Spec: OOP2 / PAOOP2a
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCreates a newLiveCounterobject.Increments the value of aLiveCounterobject.Removes all entries from aLiveMapobject.Creates a newLiveMapobject.Removes a key from aLiveMapobject.Sets the value at a key of aLiveMapobject.Deletes (tombstones) an object.Future-compatibility fallback for an action not recognized by this version of the client library. -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectOperationActionReturns the enum constant of this class with the specified name.static ObjectOperationAction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MAP_CREATE
Creates a newLiveMapobject. Spec: OOP2 -
MAP_SET
Sets the value at a key of aLiveMapobject. Spec: OOP2 -
MAP_REMOVE
Removes a key from aLiveMapobject. Spec: OOP2 -
COUNTER_CREATE
Creates a newLiveCounterobject. Spec: OOP2 -
COUNTER_INC
Increments the value of aLiveCounterobject. Spec: OOP2 -
OBJECT_DELETE
Deletes (tombstones) an object. Spec: OOP2 -
MAP_CLEAR
Removes all entries from aLiveMapobject. Spec: OOP2 -
UNKNOWN
Future-compatibility fallback for an action not recognized by this version of the client library.
-
-
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 name -
NullPointerException- if the argument is null
-