Enum Class OperationKind
- All Implemented Interfaces:
Serializable, Comparable<OperationKind>, Constable
What a
GigaSpace method does, reduced to the handful of categories that determine how
the proxy routes it.
GigaSpace declares 192 methods but only these categories: the router switches on the
category, never on the signature. That is what keeps the proxy maintainable across version upgrades -
a new overload of an existing operation needs no routing code, only a classification entry.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionModifies data in place:change,asyncChange.Removes data without returning it:clear.Part of the multi-cluster API itself (registerCluster,setWriteMode, …).Reports what the space is doing:getActiveOperations,getLastOperations(new in 18.0).Runs code in the space:execute*,executorBuilder, and the durable-task methods.Answered by one cluster without touching data:getSpaceName,getTypeManager,getCurrentTransaction,setQuiesceToken, … Always the active cluster, so these stay consistent with each other.equals/hashCode/toString- answered by the proxy, never delegated.Reads data:read*,count,aggregate,iterator, … One cluster.Removes data and returns it:take*.Adds data:write,writeMultiple,asyncLoad. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTrue when the operation must be answered by a registered cluster rather than by the proxy.booleanTrue when the operation changes space content, and is therefore subject to the write mode.booleanTrue when the operation is a read that the read mode may send to any healthy cluster.static OperationKindReturns the enum constant of this class with the specified name.static OperationKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
READ
Reads data:read*,count,aggregate,iterator, … One cluster. -
WRITE
Adds data:write,writeMultiple,asyncLoad. Mutation. -
TAKE
Removes data and returns it:take*. Mutation that also carries a result. -
CHANGE
Modifies data in place:change,asyncChange. Mutation. -
CLEAR
Removes data without returning it:clear. Mutation. -
EXECUTE
Runs code in the space:execute*,executorBuilder, and the durable-task methods. Treated as a mutation, because a task may write. -
DIAGNOSTIC
Reports what the space is doing:getActiveOperations,getLastOperations(new in 18.0). Fanned out and concatenated - "what is this proxy doing" is a multi-cluster question. -
LOCAL
Answered by one cluster without touching data:getSpaceName,getTypeManager,getCurrentTransaction,setQuiesceToken, … Always the active cluster, so these stay consistent with each other. -
CONTROL
Part of the multi-cluster API itself (registerCluster,setWriteMode, …). -
OBJECT
equals/hashCode/toString- answered by the proxy, never delegated.
-
-
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
-
isMutation
public boolean isMutation()True when the operation changes space content, and is therefore subject to the write mode. -
isRoutedRead
public boolean isRoutedRead()True when the operation is a read that the read mode may send to any healthy cluster. -
isDelegated
public boolean isDelegated()True when the operation must be answered by a registered cluster rather than by the proxy.
-