Loading...
Searching...
No Matches
session_options.hpp
Go to the documentation of this file.
#ifndef PROTON_SESSION_OPTIONS_HPP
#define PROTON_SESSION_OPTIONS_HPP
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
#include "./fwd.hpp"
#include "./internal/export.hpp"
#include <memory>
namespace proton {
class session_options {
public:
PN_CPP_EXTERN session_options();
PN_CPP_EXTERN session_options(const session_options&);
PN_CPP_EXTERN ~session_options();
PN_CPP_EXTERN session_options& operator=(const session_options&);
PN_CPP_EXTERN session_options& handler(class messaging_handler &);
// Other useful session configuration TBD.
private:
void apply(session&) const;
class impl;
std::unique_ptr<impl> impl_;
friend class session;
};
} // proton
#endif // PROTON_SESSION_OPTIONS_HPP
proton::map
A collection of key-value pairs.
Definition map.hpp:69
proton::messaging_handler
Handler for Proton messaging events.
Definition messaging_handler.hpp:69
proton::session_options
Options for creating a session.
Definition session_options.hpp:41
proton::session_options::operator=
session_options & operator=(const session_options &)
Copy options.
proton::session_options::handler
session_options & handler(class messaging_handler &)
Set a messaging_handler for the session.
proton::session_options::session_options
session_options(const session_options &)
Copy options.
proton::session_options::session_options
session_options()
Create an empty set of options.
proton::session
A container of senders and receivers.
Definition session.hpp:42
fwd.hpp
Forward declarations.
proton
The main Proton namespace.
Definition annotation_key.hpp:33