Ejemplo n.º 1
0
 public SendMessageCommand(string topic, int partition)
     : base(CommandType.MessageSend, 1)
 {
     this.Topic = topic;
     this.Partition = partition;
     this.expireTime = new ThreadSafe.Long(0);
     this.msgCounter = new ThreadSafe.Integer(0);
     this.messages = new ConcurrentDictionary<int, IList<ProducerMessage>>();
     this.futures = new Dictionary<int, SettableFuture<SendResult>>();
 }
Ejemplo n.º 2
0
 public DefaultLease(long id, long expireTime)
 {
     this.ID = id;
     this.expireTime = new ThreadSafe.Long(expireTime);
 }
Ejemplo n.º 3
0
 public MemoryManager()
 {
     //_maxMemorySize = new ThreadSafe.Integer((int) Consts.Consumer_DefaultCapacity);
     _currentMemorySize = new ThreadSafe.Long(0);
     _consumerMemory=new ConcurrentDictionary<string, int>();
 }