Represents an application-provided factory for session objects. More...
#include <Glacier2/Glacier2.h>
Public Member Functions | |
SessionManagerPrx (const Ice::CommunicatorPtr &communicator, std::string_view proxyString) | |
Constructs a proxy from a Communicator and a proxy string. | |
SessionManagerPrx (const SessionManagerPrx &other) noexcept | |
Copy constructor. | |
SessionManagerPrx (SessionManagerPrx &&other) noexcept | |
Move constructor. | |
std::optional< SessionPrx > | create (std::string_view userId, const std::optional< SessionControlPrx > &control, const Ice::Context &context=Ice::noExplicitContext) const |
Creates a new session object. | |
std::future< std::optional< SessionPrx > > | createAsync (std::string_view userId, const std::optional< SessionControlPrx > &control, const Ice::Context &context=Ice::noExplicitContext) const |
Creates a new session object. | |
std::function< void()> | createAsync (std::string_view userId, const std::optional< SessionControlPrx > &control, std::function< void(std::optional<::Glacier2::SessionPrx >)> response, std::function< void(std::exception_ptr)> exception=nullptr, std::function< void(bool)> sent=nullptr, const Ice::Context &context=Ice::noExplicitContext) const |
Creates a new session object. | |
SessionManagerPrx & | operator= (const SessionManagerPrx &rhs) noexcept |
Copy assignment operator. | |
SessionManagerPrx & | operator= (SessionManagerPrx &&rhs) noexcept |
Move assignment operator. | |
Public Member Functions inherited from Ice::Proxy< SessionManagerPrx, Ice::ObjectPrx > | |
SessionManagerPrx | ice_adapterId (std::string id) const |
Creates a proxy that is identical to this proxy, except for the adapter ID. | |
SessionManagerPrx | ice_batchDatagram () const |
Creates a proxy that is identical to this proxy, but uses batch datagram invocations. | |
SessionManagerPrx | ice_batchOneway () const |
Creates a proxy that is identical to this proxy, but uses batch oneway invocations. | |
SessionManagerPrx | ice_collocationOptimized (bool b) const |
Creates a proxy that is identical to this proxy, except for collocation optimization. | |
SessionManagerPrx | ice_compress (bool b) const |
Creates a proxy that is identical to this proxy, except for its compression setting which overrides the compression setting from the proxy endpoints. | |
SessionManagerPrx | ice_connectionCached (bool b) const |
Creates a proxy that is identical to this proxy, except for connection caching. | |
SessionManagerPrx | ice_connectionId (std::string id) const |
Creates a proxy that is identical to this proxy, except for its connection ID. | |
SessionManagerPrx | ice_context (Context context) const |
Creates a proxy that is identical to this proxy, except for the per-proxy context. | |
SessionManagerPrx | ice_datagram () const |
Creates a proxy that is identical to this proxy, but uses datagram invocations. | |
SessionManagerPrx | ice_encodingVersion (EncodingVersion version) const |
Creates a proxy that is identical to this proxy, except for the encoding used to marshal parameters. | |
SessionManagerPrx | ice_endpoints (EndpointSeq endpoints) const |
Creates a proxy that is identical to this proxy, except for the endpoints. | |
SessionManagerPrx | ice_endpointSelection (EndpointSelectionType type) const |
Creates a proxy that is identical to this proxy, except for the endpoint selection policy. | |
SessionManagerPrx | ice_fixed (ConnectionPtr connection) const |
Creates a proxy that is identical to this proxy, except it's a fixed proxy bound to the given connection. | |
SessionManagerPrx | ice_invocationTimeout (int timeout) const |
Creates a proxy that is identical to this proxy, except for the invocation timeout. | |
SessionManagerPrx | ice_locator (const std::optional< LocatorPrx > &locator) const |
Creates a proxy that is identical to this proxy, except for the locator. | |
SessionManagerPrx | ice_locatorCacheTimeout (int timeout) const |
Creates a proxy that is identical to this proxy, except for the locator cache timeout. | |
SessionManagerPrx | ice_oneway () const |
Creates a proxy that is identical to this proxy, but uses oneway invocations. | |
SessionManagerPrx | ice_router (const std::optional< RouterPrx > &router) const |
Creates a proxy that is identical to this proxy, except for the router. | |
SessionManagerPrx | ice_twoway () const |
Creates a proxy that is identical to this proxy, but uses twoway invocations. | |
const SessionManagerPrx * | operator-> () const noexcept |
The arrow operator. |
Static Public Member Functions | |
static const char * | ice_staticId () noexcept |
Gets the type ID of the associated Slice interface. |
Represents an application-provided factory for session objects.
You can configure a Glacier2 router with your own SessionManager implementation; this router will then return the sessions created by this session manager to its clients.