예제 #1
0
        public AbstractConsumer(IMessageHandler handler, ClientCacheContainer cacheContainer, ILoadBalance loadBalance, ISerializer serializer)
        {
            _handler = handler;

            _handler.Recieved += Message_Recieved;

            _cacheContainer = cacheContainer;

            _loadBalance = loadBalance;

            _serializer = serializer;

            _transportProvider = new TransportProvider(_cacheContainer, serializer);

            _connector = _transportProvider.GetConnector(_handler);
        }
예제 #2
0
 public DefaultConsumerProcessor(ClientCacheContainer cacheContainer)
 {
     _cacheContainer = cacheContainer;
 }
예제 #3
0
 public TransportProvider(ClientCacheContainer clientCacheContainer, ISerializer serializer)
     : this(serializer)
 {
     _clientCacheContainer = clientCacheContainer;
 }
예제 #4
0
 public AbstractWatcher(ZooKeeper zookeeper, ClientCacheContainer clientCacheContainer, ISerializer serializer)
     : this(zookeeper, serializer)
 {
     _clientCacheContainer = clientCacheContainer;
 }
예제 #5
0
 public ConsumerWatcher(ZooKeeperNet.ZooKeeper zooKeeper, ClientCacheContainer clientCacheContainer, ISerializer serializer)
     : base(zooKeeper, clientCacheContainer, serializer)
 {
 }
예제 #6
0
 private ProviderWatcher(ZooKeeper zookeeper, ClientCacheContainer clientCacheContainer, ISerializer serializer)
     : base(zookeeper, clientCacheContainer, serializer)
 {
 }
예제 #7
0
 public DefaultConsumer(IMessageHandler handler, ClientCacheContainer cacheContainer, ILoadBalance loadBalance, ISerializer serializer)
     : base(handler, cacheContainer, loadBalance, serializer)
 {
 }