def __init__(self, **kwargs): self.conn = interface.Connection(**kwargs) self.notifies = [] self.notifies_lock = threading.Lock() self.conn.NotificationReceived += self._notificationReceived # Two Phase Commit internal attributes: self.__tpc_xid = None self.__tpc_prepared = None
def __init__(self, **kwargs): self.conn = interface.Connection(**kwargs) self.notifies = [] self.notifies_lock = threading.Lock() self.conn.NotificationReceived += self._notificationReceived