gRPC  0.6.0
 All Classes Namespaces Functions Variables Enumerations Properties Pages
Public Member Functions | List of all members
grpc.framework.base._interfaces.ExpirationManager Class Reference
Inheritance diagram for grpc.framework.base._interfaces.ExpirationManager:
grpc.framework.base._expiration._ExpirationManager

Public Member Functions

def change_timeout
 
def deadline
 
def abort
 

Detailed Description

A manager responsible for aborting the operation if it runs out of time.

Member Function Documentation

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: