def republish(self, params):
     #with self._lock:
     if params.SubscriptionId not in self.subscriptions:
         # TODO: what should I do?
         return ua.NotificationMessage()
     return self.subscriptions[params.SubscriptionId].republish(
         params.RetransmitSequenceNumber)
 def republish(self, nb):
     #self.logger.info("re-publish request for ack %s in subscription %s", nb, self)
     notification_message = self._not_acknowledged_results.pop(nb, None)
     if notification_message:
         self.logger.info("re-publishing ack %s in subscription %s", nb, self)
         return notification_message
     self.logger.info("Error request to re-published non existing ack %s in subscription %s", nb, self)
     return ua.NotificationMessage()