Package com.zeroc.Ice

Enum Class OperationMode

java.lang.Object
java.lang.Enum<OperationMode>
com.zeroc.Ice.OperationMode
All Implemented Interfaces:
Serializable, Comparable<OperationMode>, Constable

public enum OperationMode extends Enum<OperationMode> implements Serializable
Determines the retry behavior an invocation in case of a (potentially) recoverable error.
  • Enum Constant Details

    • Normal

      public static final OperationMode Normal
      Ordinary operations have Normal mode. These operations modify object state; invoking such an operation twice in a row has different semantics than invoking it once. The Ice run time guarantees that it will not violate at-most-once semantics for Normal operations.
    • Nonmutating

      public static final OperationMode Nonmutating
      Operations that use the Slice nonmutating keyword must not modify object state. For C++, nonmutating operations generate const member functions in the skeleton. In addition, the Ice run time will attempt to transparently recover from certain run-time errors by re-issuing a failed request and propagate the failure to the application only if the second attempt fails.

      Nonmutating is deprecated; Use the idempotent keyword instead. For C++, to retain the mapping of nonmutating operations to C++ const member functions, use the ["cpp:const"] metadata directive.

    • Idempotent

      public static final OperationMode Idempotent
      Operations that use the Slice idempotent keyword can modify object state, but invoking an operation twice in a row must result in the same object state as invoking it once. For example, x = 1 is an idempotent statement, whereas x += 1 is not. For idempotent operations, the Ice run-time uses the same retry behavior as for nonmutating operations in case of a potentially recoverable error.
  • Method Details

    • values

      public static OperationMode[] 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 OperationMode 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
    • value

      public int value()
    • valueOf

      public static OperationMode valueOf(int v)
      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:
      v - 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
    • ice_write

      public void ice_write(OutputStream ostr)
    • ice_write

      public static void ice_write(OutputStream ostr, OperationMode v)
    • ice_read

      public static OperationMode ice_read(InputStream istr)
    • ice_write

      public static void ice_write(OutputStream ostr, int tag, Optional<OperationMode> v)
    • ice_write

      public static void ice_write(OutputStream ostr, int tag, OperationMode v)
    • ice_read

      public static Optional<OperationMode> ice_read(InputStream istr, int tag)