Esempio n. 1
0
 def __init__(self, name, transportPool=None, threadPool=None):
     self.__name = name
     self.__messageTransports = {}
     self.__msgCounter = 0
     self.__msgCounterLock = threading.Lock()
     self.__responseCallbacks = {}
     self.__msgInTransport = {}
     self.__listenPersistConn = False
     self.__useMessageObjects = True
     self.__callbacksLock = threading.Condition()
     self.__trInOutLock = threading.Lock()
     self.__msgFactory = MessageFactory()
     self.__log = gLogger.getSubLogger("MSGBRK")
     if not transportPool:
         transportPool = getGlobalTransportPool()
     self.__trPool = transportPool
     if not threadPool:
         threadPool = getGlobalThreadPool()
     self.__threadPool = threadPool
     self.__listeningForMessages = False