/// <inheritdoc />
        public async Task <long> GetAndSetAsync(long value)
        {
            var requestMessage  = AtomicLongGetAndSetCodec.EncodeRequest(CPGroupId, Name, value);
            var responseMessage = await Cluster.Messaging.SendAsync(requestMessage).CfAwait();

            var response = AtomicLongGetAndSetCodec.DecodeResponse(responseMessage).Response;

            return(response);
        }
        public virtual long GetAndSet(long newValue)
        {
            var request = AtomicLongGetAndSetCodec.EncodeRequest(_name, newValue);

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