def __init__(self, source_node, timeout=960): EventConsumerAbstract.__init__(self) self.__node = as_internal_node(source_node) self.__cond = Condition() self.__event = None self.__sched = None #scheduled action to unsubscribe the point self.__timeout = timeout #number of seconds to maintain subscription self._event_received = False return
def __init__(self, generator): EventConsumerAbstract.__init__(self) self.generator = generator self.log_object = None return
def __init__(self, *args, **kw): EventConsumerAbstract.__init__(self, *args, **kw) self.entries = [] self.errors = [] self.lock = Lock()