Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ getSessionTimeoutAsync() [2/2]

std::function< void()> IceGrid::RegistryPrx::getSessionTimeoutAsync ( std::function< void(std::int32_t)> response,
std::function< void(std::exception_ptr)> exception = nullptr,
std::function< void(bool)> sent = nullptr,
const Ice::Context & context = Ice::noExplicitContext ) const

Gets the session timeout.

An Ice 3.7 or earlier client can use this value to determine how often it needs to send heartbeats (using ACM) or call IceGrid::SessionPrx::keepAlive (resp. IceGrid::AdminSessionPrx::keepAlive) to keep a session alive in the IceGrid registry.

Parameters
responseThe response callback. It accepts:
  • The session timeout (in seconds).
exceptionThe exception callback.
sentThe sent callback.
contextThe request context.
Returns
A function that can be called to cancel the invocation locally.