Qpid Proton C++ API 0.41.1
Loading...
Searching...
No Matches
transaction_options.hpp
Go to the documentation of this file.
1#ifndef PROTON_TRANSACTION_OPTIONS_HPP
2#define PROTON_TRANSACTION_OPTIONS_HPP
3
4/*
5 *
6 * Licensed to the Apache Software Foundation (ASF) under one
7 * or more contributor license agreements. See the NOTICE file
8 * distributed with this work for additional information
9 * regarding copyright ownership. The ASF licenses this file
10 * to you under the Apache License, Version 2.0 (the
11 * "License"); you may not use this file except in compliance
12 * with the License. You may obtain a copy of the License at
13 *
14 * http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing,
17 * software distributed under the License is distributed on an
18 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19 * KIND, either express or implied. See the License for the
20 * specific language governing permissions and limitations
21 * under the License.
22 *
23 */
24
25#include "./internal/export.hpp"
26
27#include <memory>
28
31
32namespace proton {
33
41 public:
43 PN_CPP_EXTERN transaction_options();
44
47
48 PN_CPP_EXTERN ~transaction_options();
49
52
54 PN_CPP_EXTERN void update(const transaction_options& other);
55
62
63 private:
64 void apply(class session&) const;
65
66 class impl;
67 std::unique_ptr<impl> impl_;
68
70 friend class session;
72};
73
74} // namespace proton
75
76#endif // PROTON_TRANSACTION_OPTIONS_HPP
A container of senders and receivers.
Definition session.hpp:42
transaction_options & auto_modify_on_abort(bool)
Unsettled API — If true, when a transaction is aborted, or a commit discharge is rejected,...
transaction_options(const transaction_options &)
Copy options.
transaction_options()
Create a set of options (unset fields use their documented defaults on declare).
void update(const transaction_options &other)
Merge with another option set; values from other take precedence.
transaction_options & operator=(const transaction_options &)
Copy options.
The main Proton namespace.
Definition annotation_key.hpp:33