Esempio n. 1
0
 def send_notify(self, target, context, message, version, retry=None):
     request = zmq_request.NotificationRequest(target,
                                               context=context,
                                               message=message,
                                               retry=retry,
                                               version=version)
     self.notify_publisher.send_notify(request)
Esempio n. 2
0
 def send_notify(self, target, context, message, version, retry=None):
     with contextlib.closing(
             zmq_request.NotificationRequest(target,
                                             context,
                                             message,
                                             version=version,
                                             retry=retry)) as request:
         self.dealer_publisher.send_request(request)