use of com.hazelcast.client.impl.protocol.codec.AtomicLongGetAndSetCodec in project hazelcast by hazelcast.
the class AtomicLongProxy method getAndSetAsync.
@Override
public InternalCompletableFuture<Long> getAndSetAsync(long newValue) {
ClientMessage request = AtomicLongGetAndSetCodec.encodeRequest(groupId, objectName, newValue);
ClientInvocationFuture future = new ClientInvocation(getClient(), request, name).invoke();
return new ClientDelegatingFuture<>(future, getSerializationService(), AtomicLongGetAndSetCodec::decodeResponse);
}
Aggregations