Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches
OperationMode.h
1// Copyright (c) ZeroC, Inc.
2
3// slice2cpp version 3.8.0-alpha.0
4// <auto-generated>Generated from Slice file 'OperationMode.ice'.</auto-generated>
5// clang-format off
6
7#ifndef Ice_OperationMode_h_
8#define Ice_OperationMode_h_
9
11#include <Ice/Config.h>
12#include <Ice/StreamHelpers.h>
13
14#ifndef ICE_DISABLE_VERSION
15# if ICE_INT_VERSION != 30850
16# error Ice version mismatch: an exact match is required for beta generated code
17# endif
18#endif
19
20// NOLINTBEGIN(modernize-concat-nested-namespaces)
21
22namespace Ice
23{
24 /// Specifies if an operation is idempotent, which affects the retry behavior of the Ice client runtime.
25 enum class OperationMode : std::uint8_t
26 {
27 /// A non-idempotent operation (the default). The Ice client runtime guarantees that it will not violate
28 /// at-most-once semantics for operations with this mode.
30
31 /// Equivalent to ::Ice::OperationMode#Idempotent, but deprecated.
32 Nonmutating [[deprecated("Use Idempotent instead.")]],
33
34 /// An idempotent operation. The Ice client runtime does not guarantee at-most-once semantics for such an
35 /// operation.
36 /// @remarks When an operation is idempotent, the Ice runtime will attempt to transparently recover from certain
37 /// runtime errors by re-issuing a failed request transparently.
39 };
40
41 /// Outputs the enumerator name or underlying value of an OperationMode to a stream.
42 /// @param os The output stream.
43 /// @param value The value to output.
44 /// @return The output stream.
45 ICE_API std::ostream& operator<<(std::ostream& os, OperationMode value);
46}
47
48namespace Ice
49{
50 /// @cond INTERNAL
51 template<>
52 struct StreamableTraits<::Ice::OperationMode>
53 {
55 static constexpr int minValue = 0;
56 static constexpr int maxValue = 2;
57 static constexpr int minWireSize = 1;
58 static constexpr bool fixedLength = false;
59 };
60 /// @endcond
61}
62
63// NOLINTEND(modernize-concat-nested-namespaces)
64
66#endif
constexpr StreamHelperCategory StreamHelperCategoryEnum
Generated enum types.
int StreamHelperCategory
The stream helper category allows to select a StreamHelper specialization for a specific category of ...
OperationMode
Specifies if an operation is idempotent, which affects the retry behavior of the Ice client runtime.
@ Normal
A non-idempotent operation (the default).
@ Idempotent
An idempotent operation.
@ Nonmutating
Equivalent to Ice::OperationMode::Idempotent, but deprecated.
std::ostream & operator<<(std::ostream &os, const Identity &value)
Outputs the description of an Identity to a stream, including all its fields.
The Ice RPC framework.
Definition SampleEvent.h:59
static constexpr bool fixedLength
Indicates if the type is always encoded on a fixed number of bytes.
static constexpr int minWireSize
The minimum number of bytes needed to marshal this type.
static constexpr StreamHelperCategory helper
The category trait, used for selecting the appropriate StreamHelper.