def adaptation(response_consumer, operation_context): rpc_context = _control.RpcContext(operation_context) return method.service(response_consumer.consume_and_terminate, rpc_context)
def on_payload(payload): method.service(payload, response_consumer.consume_and_terminate, _control.RpcContext(operation_context))
def on_payload(payload): method.service(payload, response_consumer, _control.RpcContext(operation_context))
def in_pool_thread(): _control.pipe_iterator_to_consumer( method.service(rendezvous, _control.RpcContext(operation_context)), response_consumer, operation_context.is_active, True)
def in_pool_thread(): response_consumer.consume_and_terminate( method.service(rendezvous, _control.RpcContext(operation_context)))
def adaptation(response_consumer, operation_context): rpc_context = _control.RpcContext(operation_context) return _ValueInStreamOutConsumer(method.service, rpc_context, response_consumer)
def adaptation(response_consumer, operation_context): rpc_context = _control.RpcContext(operation_context) return stream_util.TransformingConsumer( lambda request: method.service(request, rpc_context), response_consumer)
def __init__(self, operation): self._operation = operation self.context = _control.RpcContext(operation.context)