Enum Class OperationKind

java.lang.Object
java.lang.Enum<OperationKind>
org.openspaces.core.multicluster.internal.OperationKind
All Implemented Interfaces:
Serializable, Comparable<OperationKind>, Constable

public enum OperationKind extends Enum<OperationKind>
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 Constants
    Enum Constant
    Description
    Modifies 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 Type
    Method
    Description
    boolean
    True when the operation must be answered by a registered cluster rather than by the proxy.
    boolean
    True when the operation changes space content, and is therefore subject to the write mode.
    boolean
    True when the operation is a read that the read mode may send to any healthy cluster.
    Returns the enum constant of this class with the specified name.
    static OperationKind[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • READ

      public static final OperationKind READ
      Reads data: read*, count, aggregate, iterator, … One cluster.
    • WRITE

      public static final OperationKind WRITE
      Adds data: write, writeMultiple, asyncLoad. Mutation.
    • TAKE

      public static final OperationKind TAKE
      Removes data and returns it: take*. Mutation that also carries a result.
    • CHANGE

      public static final OperationKind CHANGE
      Modifies data in place: change, asyncChange. Mutation.
    • CLEAR

      public static final OperationKind CLEAR
      Removes data without returning it: clear. Mutation.
    • EXECUTE

      public static final OperationKind EXECUTE
      Runs code in the space: execute*, executorBuilder, and the durable-task methods. Treated as a mutation, because a task may write.
    • DIAGNOSTIC

      public static final OperationKind 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

      public static final OperationKind LOCAL
      Answered by one cluster without touching data: getSpaceName, getTypeManager, getCurrentTransaction, setQuiesceToken, … Always the active cluster, so these stay consistent with each other.
    • CONTROL

      public static final OperationKind CONTROL
      Part of the multi-cluster API itself (registerCluster, setWriteMode, …).
    • OBJECT

      public static final OperationKind OBJECT
      equals / hashCode / toString - answered by the proxy, never delegated.
  • Method Details

    • values

      public static OperationKind[] 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

      public static OperationKind valueOf(String name)
      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
    • 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.