コード例 #1
0
 def send_call(self, target, context, message, timeout=None, retry=None):
     request = zmq_request.CallRequest(
         target,
         context=context,
         message=message,
         retry=retry,
         timeout=timeout,
         allowed_remote_exmods=self.allowed_remote_exmods)
     return self.call_publisher.send_call(request)
コード例 #2
0
 def send_call(self, target, context, message, timeout=None, retry=None):
     with contextlib.closing(
             zmq_request.CallRequest(target,
                                     context=context,
                                     message=message,
                                     timeout=timeout,
                                     retry=retry,
                                     allowed_remote_exmods=self.
                                     allowed_remote_exmods)) as request:
         return self.call_publisher.send_request(request)