gRPC  0.6.0
 All Classes Namespaces Functions Variables Enumerations Properties Pages
Public Member Functions | List of all members
grpc.framework.alpha.interfaces.RpcContext Class Reference
Inheritance diagram for grpc.framework.alpha.interfaces.RpcContext:
grpc.framework.alpha._reexport._RpcContext

Public Member Functions

def is_active
 
def time_remaining
 
def add_abortion_callback
 

Detailed Description

Provides RPC-related information and action.

Member Function Documentation

def grpc.framework.alpha.interfaces.RpcContext.add_abortion_callback (   self,
  abortion_callback 
)
Registers a callback to be called if the RPC is aborted.
Args:
  abortion_callback: A callable to be called and passed an Abortion value
in the event of RPC abortion.
def grpc.framework.alpha.interfaces.RpcContext.is_active (   self)
Describes whether the RPC is active or has terminated.
def grpc.framework.alpha.interfaces.RpcContext.time_remaining (   self)
Describes the length of allowed time remaining for the RPC.
Returns:
  A nonnegative float indicating the length of allowed time in seconds
  remaining for the RPC to complete before it is considered to have timed
  out.

The documentation for this class was generated from the following file: