removeDispatcher() private method

private removeDispatcher ( ConsumerId id ) : void
id Apache.NMS.ActiveMQ.Commands.ConsumerId
return void
コード例 #1
0
 public void RemoveConsumer(ConsumerId objectId)
 {
     connection.removeDispatcher(objectId);
     if (!this.closing)
     {
         consumers.Remove(objectId);
     }
 }
コード例 #2
0
        public void DisposeOf(ConsumerId objectId, long lastDeliveredSequenceId)
        {
            connection.removeDispatcher(objectId);
            this.lastDeliveredSequenceId = Math.Min(this.lastDeliveredSequenceId, lastDeliveredSequenceId);

            if (!this.closing)
            {
                consumers.Remove(objectId);
            }
        }