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 Sliceidempotentkeyword 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 Slicenonmutatingkeyword must not modify object state.Ordinary operations haveNormalmode. -
Method Summary
Modifier and TypeMethodDescriptionstatic OperationModeice_read(InputStream istr) static Optional<OperationMode>ice_read(InputStream istr, int tag) voidice_write(OutputStream ostr) static voidice_write(OutputStream ostr, int tag, OperationMode v) static voidice_write(OutputStream ostr, int tag, Optional<OperationMode> v) static voidice_write(OutputStream ostr, OperationMode v) intvalue()static OperationModevalueOf(int v) Returns the enum constant of this class with the specified name.static OperationModeReturns 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 haveNormalmode. 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 forNormaloperations. -
Nonmutating
Operations that use the Slicenonmutatingkeyword must not modify object state. For C++, nonmutating operations generateconstmember 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.Nonmutatingis deprecated; Use theidempotentkeyword instead. For C++, to retain the mapping ofnonmutatingoperations to C++constmember functions, use the["cpp:const"]metadata directive. -
Idempotent
Operations that use the Sliceidempotentkeyword 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 = 1is an idempotent statement, whereasx += 1is 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
-