template<typename Prx, typename... Bases>
template<class Rep, class Period>
| Prx Ice::Proxy< Prx, Bases >::ice_locatorCacheTimeout |
( |
const std::chrono::duration< Rep, Period > & | timeout | ) |
const |
|
inlinenodiscard |
Creates a proxy that is identical to this proxy, except for the locator cache timeout.
- Parameters
-
| timeout | The new locator cache timeout. Any negative duration means infinite and is normalized to -1 second; a duration that is not a whole number of seconds is rounded up to the next whole number of seconds. |
- Returns
- A proxy with the new timeout.
- Exceptions
-
| std::invalid_argument | Thrown when timeout is greater than std::numeric_limits<std::int32_t>::max() seconds. |
Definition at line 207 of file Proxy.h.