Пример #1
0
 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
Пример #2
0
 def __init__(self, **kwargs):
     self.conn = interface.Connection(**kwargs)
     self.notifies = []
     self.notifies_lock = threading.Lock()
     self.conn.NotificationReceived += self._notificationReceived