ExpiryRegistrationBase.register

Sets the timeout for the client and registers it with the timeout manager. On timeout the client will automatically be unregistered. The client must not already be registered.

The subclass must make sure that a client instance is set before it calls this method. It may reset the client instance to null after it has called unregister() (even if unregister() throws an exception).

class ExpiryRegistrationBase
bool
register
()

Parameters

timeout_us ulong

timeout in microseconds from now. 0 is ignored.

Return Value

Type: bool

true if registered or false if timeout_us is 0.

In: - this.client must not be null. - The client must not already be registered.

Meta