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