OperationMode enum
Determines the retry behavior an invocation in case of a (potentially) recoverable error.
Constructors
- OperationMode()
-
const
Values
- normal → const OperationMode
-
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 forNormal
operations. - nonmutating → const OperationMode
-
Operations that use the Slice
nonmutating
keyword must not modify object state. For C++, nonmutating operations generateconst
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 theidempotent
keyword instead. For C++, to retain the mapping ofnonmutating
operations to C++const
member functions, use the\["cpp:const"]
metadata directive. - idempotent → const OperationMode
-
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, whereasx += 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.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
OperationMode> - A constant List of the values in this enum, in order of their declaration.