use of com.hazelcast.client.impl.protocol.codec.AtomicLongAlterCodec in project hazelcast by hazelcast.
the class AtomicLongProxy method getAndAlterAsync.
@Override
public InternalCompletableFuture<Long> getAndAlterAsync(IFunction<Long, Long> function) {
Data f = getSerializationService().toData(function);
ClientMessage request = AtomicLongAlterCodec.encodeRequest(groupId, objectName, f, OLD_VALUE.value());
ClientInvocationFuture future = new ClientInvocation(getClient(), request, name).invoke();
return new ClientDelegatingFuture<>(future, getSerializationService(), AtomicLongAlterCodec::decodeResponse);
}
use of com.hazelcast.client.impl.protocol.codec.AtomicLongAlterCodec in project hazelcast by hazelcast.
the class AtomicLongProxy method alterAndGetAsync.
@Override
public InternalCompletableFuture<Long> alterAndGetAsync(IFunction<Long, Long> function) {
Data f = getSerializationService().toData(function);
ClientMessage request = AtomicLongAlterCodec.encodeRequest(groupId, objectName, f, NEW_VALUE.value());
ClientInvocationFuture future = new ClientInvocation(getClient(), request, name).invoke();
return new ClientDelegatingFuture<>(future, getSerializationService(), AtomicLongAlterCodec::decodeResponse);
}
Aggregations