/// <inheritdoc /> public async Task <long> GetRemainingCapacityAsync() { var requestMessage = RingbufferRemainingCapacityCodec.EncodeRequest(Name); var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CfAwait(); return(RingbufferRemainingCapacityCodec.DecodeResponse(responseMessage).Response); }
public long RemainingCapacity() { var request = RingbufferRemainingCapacityCodec.EncodeRequest(GetName()); return(Invoke(request, m => RingbufferRemainingCapacityCodec.DecodeResponse(m).response)); }