- All Implemented Interfaces:
Serializable
,Comparable<OperationMode>
,Constable
Specifies if an operation is idempotent, which affects the retry behavior of the Ice client runtime.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn idempotent operation.Equivalent toIdempotent
, but deprecated.A non-idempotent operation (the default). -
Method Summary
Modifier and TypeMethodDescriptionstatic OperationMode
ice_read
(InputStream istr) Unmarshals anOperationMode
from an input stream.static Optional<OperationMode>
ice_read
(InputStream istr, int tag) Unmarshals an optionalOperationMode
from an input stream.void
ice_write
(OutputStream ostr) Marshals thisOperationMode
into an output stream.static void
ice_write
(OutputStream ostr, int tag, OperationMode v) Marshals an optionalOperationMode
into an output stream.static void
ice_write
(OutputStream ostr, int tag, Optional<OperationMode> v) Marshals an optionalOperationMode
into an output stream.static void
ice_write
(OutputStream ostr, OperationMode v) Marshals anOperationMode
into an output stream.int
value()
Returns the integer value of this enumerator.static OperationMode
valueOf
(int v) Returns theOperationMode
enumerator corresponding to the given integer value.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
A non-idempotent operation (the default). The Ice client runtime guarantees that it will not violate at-most-once semantics for operations with this mode. -
Nonmutating
Equivalent toIdempotent
, but deprecated. -
Idempotent
An idempotent operation. The Ice client runtime does not guarantee at-most-once semantics for such an operation.Remarks: When an operation is idempotent, the Ice runtime will attempt to transparently recover from certain runtime errors by re-issuing a failed request transparently.
-
-
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()Returns the integer value of this enumerator.- Returns:
- the integer value of this enumerator
-
valueOf
Returns theOperationMode
enumerator corresponding to the given integer value.- Parameters:
v
- the value to match- Returns:
- the
OperationMode
enumerator corresponding to the given integer value, ornull
if no such enumerator exists
-
ice_write
Marshals thisOperationMode
into an output stream.- Parameters:
ostr
- the output stream
-
ice_write
Marshals anOperationMode
into an output stream.- Parameters:
ostr
- the output streamv
- theOperationMode
to marshal
-
ice_read
Unmarshals anOperationMode
from an input stream.- Parameters:
istr
- the input stream- Returns:
- the unmarshaled
OperationMode
-
ice_write
Marshals an optionalOperationMode
into an output stream.- Parameters:
ostr
- the output streamtag
- the tagv
- the value to marshal
-
ice_write
Marshals an optionalOperationMode
into an output stream.- Parameters:
ostr
- the output streamtag
- the tagv
- the value to marshal
-
ice_read
Unmarshals an optionalOperationMode
from an input stream.- Parameters:
istr
- the input streamtag
- the tag- Returns:
- the unmarshaled value
-