Provides access to a RouterPrx object via a fixed identity. More...
#include <Ice/Ice.h>
Public Member Functions | |
RouterFinderPrx (const Ice::CommunicatorPtr &communicator, std::string_view proxyString) | |
Constructs a proxy from a Communicator and a proxy string. | |
RouterFinderPrx (const RouterFinderPrx &other) noexcept | |
Copy constructor. | |
RouterFinderPrx (RouterFinderPrx &&other) noexcept | |
Move constructor. | |
std::optional< RouterPrx > | getRouter (const Ice::Context &context=Ice::noExplicitContext) const |
Gets a proxy to the associated Ice::RouterPrx. | |
std::future< std::optional< RouterPrx > > | getRouterAsync (const Ice::Context &context=Ice::noExplicitContext) const |
Gets a proxy to the associated Ice::RouterPrx. | |
std::function< void()> | getRouterAsync (std::function< void(std::optional<::Ice::RouterPrx >)> response, std::function< void(std::exception_ptr)> exception=nullptr, std::function< void(bool)> sent=nullptr, const Ice::Context &context=Ice::noExplicitContext) const |
Gets a proxy to the associated Ice::RouterPrx. | |
RouterFinderPrx & | operator= (const RouterFinderPrx &rhs) noexcept |
Copy assignment operator. | |
RouterFinderPrx & | operator= (RouterFinderPrx &&rhs) noexcept |
Move assignment operator. | |
Public Member Functions inherited from Ice::Proxy< RouterFinderPrx, Ice::ObjectPrx > | |
RouterFinderPrx | ice_adapterId (std::string id) const |
Creates a proxy that is identical to this proxy, except for the adapter ID. | |
RouterFinderPrx | ice_batchDatagram () const |
Creates a proxy that is identical to this proxy, but uses batch datagram invocations. | |
RouterFinderPrx | ice_batchOneway () const |
Creates a proxy that is identical to this proxy, but uses batch oneway invocations. | |
RouterFinderPrx | ice_collocationOptimized (bool b) const |
Creates a proxy that is identical to this proxy, except for collocation optimization. | |
RouterFinderPrx | 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. | |
RouterFinderPrx | ice_connectionCached (bool b) const |
Creates a proxy that is identical to this proxy, except for connection caching. | |
RouterFinderPrx | ice_connectionId (std::string id) const |
Creates a proxy that is identical to this proxy, except for its connection ID. | |
RouterFinderPrx | ice_context (Context context) const |
Creates a proxy that is identical to this proxy, except for the per-proxy context. | |
RouterFinderPrx | ice_datagram () const |
Creates a proxy that is identical to this proxy, but uses datagram invocations. | |
RouterFinderPrx | ice_encodingVersion (EncodingVersion version) const |
Creates a proxy that is identical to this proxy, except for the encoding used to marshal parameters. | |
RouterFinderPrx | ice_endpoints (EndpointSeq endpoints) const |
Creates a proxy that is identical to this proxy, except for the endpoints. | |
RouterFinderPrx | ice_endpointSelection (EndpointSelectionType type) const |
Creates a proxy that is identical to this proxy, except for the endpoint selection policy. | |
RouterFinderPrx | 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. | |
RouterFinderPrx | ice_invocationTimeout (int timeout) const |
Creates a proxy that is identical to this proxy, except for the invocation timeout. | |
RouterFinderPrx | ice_locator (const std::optional< LocatorPrx > &locator) const |
Creates a proxy that is identical to this proxy, except for the locator. | |
RouterFinderPrx | ice_locatorCacheTimeout (int timeout) const |
Creates a proxy that is identical to this proxy, except for the locator cache timeout. | |
RouterFinderPrx | ice_oneway () const |
Creates a proxy that is identical to this proxy, but uses oneway invocations. | |
RouterFinderPrx | ice_router (const std::optional< RouterPrx > &router) const |
Creates a proxy that is identical to this proxy, except for the router. | |
RouterFinderPrx | ice_twoway () const |
Creates a proxy that is identical to this proxy, but uses twoway invocations. | |
const RouterFinderPrx * | 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. |
Provides access to a RouterPrx object via a fixed identity.
A RouterFinder is always registered with identity Ice/RouterFinder. This allows clients to obtain the associated Router proxy with just the endpoint information of the object. For example, you can use the RouterFinder proxy Ice/RouterFinder:tcp -h somehost -p 4061 to get the Router proxy MyGlacier2/Router:tcp -h somehost -p 4061.