예제 #1
0
        /// <inheritdoc />
        public override async Task <int> GetSizeAsync()
        {
            var requestMessage  = QueueSizeCodec.EncodeRequest(Name);
            var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CfAwait();

            return(QueueSizeCodec.DecodeResponse(responseMessage).Response);
        }
        public int Size()
        {
            var request = QueueSizeCodec.EncodeRequest(GetName());

            return(Invoke(request, m => QueueSizeCodec.DecodeResponse(m).response));
        }