public RemotingResponse HandleRequest(IRequestHandlerContext context, RemotingRequest remotingRequest) { var request = _binarySerializer.Deserialize <UpdateQueueOffsetRequest>(remotingRequest.Body); _offsetStore.UpdateConsumeOffset( request.MessageQueue.Topic, request.MessageQueue.QueueId, request.QueueOffset, request.ConsumerGroup); return(null); }
public RemotingResponse HandleRequest(IRequestHandlerContext context, RemotingRequest remotingRequest) { if (BrokerController.Instance.IsCleaning) { return(null); } var request = _binarySerializer.Deserialize <byte[], UpdateQueueOffsetRequest>(remotingRequest.Body); _offsetStore.UpdateConsumeOffset( request.MessageQueue.Topic, request.MessageQueue.QueueId, request.QueueOffset, request.ConsumerGroup); return(null); }