Пример #1
0
 def _init_offline_request_exceptions(self):
     self._offline_request_queue_disabled_exceptions = {
         RequestTypes.PUBLISH: publishQueueDisabledException(),
         RequestTypes.SUBSCRIBE: subscribeQueueDisabledException(),
         RequestTypes.UNSUBSCRIBE: unsubscribeQueueDisabledException()
     }
     self._offline_request_queue_full_exceptions = {
         RequestTypes.PUBLISH: publishQueueFullException(),
         RequestTypes.SUBSCRIBE: subscribeQueueFullException(),
         RequestTypes.UNSUBSCRIBE: unsubscribeQueueFullException()
     }
Пример #2
0
 def _init_offline_request_exceptions(self):
     self._offline_request_queue_disabled_exceptions = {
         RequestTypes.PUBLISH : publishQueueDisabledException(),
         RequestTypes.SUBSCRIBE : subscribeQueueDisabledException(),
         RequestTypes.UNSUBSCRIBE : unsubscribeQueueDisabledException()
     }
     self._offline_request_queue_full_exceptions = {
         RequestTypes.PUBLISH : publishQueueFullException(),
         RequestTypes.SUBSCRIBE : subscribeQueueFullException(),
         RequestTypes.UNSUBSCRIBE : unsubscribeQueueFullException()
     }