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>>(); }
public DefaultLease(long id, long expireTime) { this.ID = id; this.expireTime = new ThreadSafe.Long(expireTime); }
public MemoryManager() { //_maxMemorySize = new ThreadSafe.Integer((int) Consts.Consumer_DefaultCapacity); _currentMemorySize = new ThreadSafe.Long(0); _consumerMemory=new ConcurrentDictionary<string, int>(); }