A manager responsible for aborting the operation if it runs out of time.
def grpc.framework.base._interfaces.ExpirationManager.abort |
( |
|
self | ) |
|
Indicates to this manager that the operation has aborted.
def grpc.framework.base._interfaces.ExpirationManager.change_timeout |
( |
|
self, |
|
|
|
timeout |
|
) |
| |
Changes the timeout allotted for the operation.
Operation duration is always measure from the beginning of the operation;
calling this method changes the operation's allotted time to timeout total
seconds, not timeout seconds from the time of this method call.
Args:
timeout: A length of time in seconds to allow for the operation.
def grpc.framework.base._interfaces.ExpirationManager.deadline |
( |
|
self | ) |
|
Returns the time until which the operation is allowed to run.
Returns:
The time (seconds since the epoch) at which the operation will expire.
The documentation for this class was generated from the following file:
- src/python/src/grpc/framework/base/_interfaces.py