Package com.zeroc.Ice
Enum Class OperationMode
- All Implemented Interfaces:
Serializable
,Comparable<OperationMode>
,Constable
Determines the retry behavior an invocation in case of a (potentially) recoverable error.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOperations that use the Sliceidempotent
keyword can modify object state, but invoking an operation twice in a row must result in the same object state as invoking it once.Operations that use the Slicenonmutating
keyword must not modify object state.Ordinary operations haveNormal
mode. -
Method Summary
Modifier and TypeMethodDescriptionstatic OperationMode
ice_read
(InputStream istr) static Optional<OperationMode>
ice_read
(InputStream istr, int tag) void
ice_write
(OutputStream ostr) static void
ice_write
(OutputStream ostr, int tag, OperationMode v) static void
ice_write
(OutputStream ostr, int tag, Optional<OperationMode> v) static void
ice_write
(OutputStream ostr, OperationMode v) int
value()
static OperationMode
valueOf
(int v) Returns the enum constant of this class with the specified name.static OperationMode
Returns the enum constant of this class with the specified name.static OperationMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Normal
Ordinary operations haveNormal
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
Operations that use the Slicenonmutating
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
Operations that use the Sliceidempotent
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.
-
-
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
-
value
public int value() -
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:
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 nameNullPointerException
- if the argument is null
-
ice_write
-
ice_write
-
ice_read
-
ice_write
-
ice_write
-
ice_read
-