Example #1
0
    def __init__(self,
                 xp_name=None,
                 event_type=None,
                 origin=None,
                 queue_name=None,
                 callback=None,
                 sub_type=None,
                 origin_type=None,
                 process=None,
                 routing_call=None,
                 auto_delete=None,
                 *args,
                 **kwargs):

        BaseEventSubscriberMixin.__init__(self,
                                          event_type=event_type,
                                          sub_type=sub_type,
                                          origin=origin,
                                          origin_type=origin_type,
                                          xp_name=xp_name,
                                          queue_name=queue_name,
                                          auto_delete=auto_delete)

        log.debug("ProcessEventSubscriber events pattern %s", self.binding)

        ProcessSubscriber.__init__(self,
                                   from_name=self._ev_recv_name,
                                   binding=self.binding,
                                   callback=callback,
                                   process=process,
                                   routing_call=routing_call,
                                   auto_delete=self._auto_delete,
                                   **kwargs)
Example #2
0
    def __init__(self, xp_name=None, event_type=None, origin=None, queue_name=None, callback=None,
                 sub_type=None, origin_type=None, process=None, routing_call=None, auto_delete=None, *args, **kwargs):

        self._auto_delete = auto_delete

        BaseEventSubscriberMixin.__init__(self, xp_name=xp_name, event_type=event_type, origin=origin,
                                          queue_name=queue_name, sub_type=sub_type, origin_type=origin_type)

        log.debug("ProcessEventSubscriber events pattern %s", self.binding)

        ProcessSubscriber.__init__(self, from_name=self._ev_recv_name, binding=self.binding, callback=callback, process=process, routing_call=routing_call, **kwargs)