Search in sources :

Example 1 with AtomicLongGetCodec

use of com.hazelcast.client.impl.protocol.codec.AtomicLongGetCodec in project hazelcast by hazelcast.

the class AtomicLongProxy method getAsync.

@Override
public InternalCompletableFuture<Long> getAsync() {
    ClientMessage request = AtomicLongGetCodec.encodeRequest(groupId, objectName);
    ClientInvocationFuture future = new ClientInvocation(getClient(), request, name).invoke();
    return new ClientDelegatingFuture<>(future, getSerializationService(), AtomicLongGetCodec::decodeResponse);
}
Also used : ClientDelegatingFuture(com.hazelcast.client.impl.ClientDelegatingFuture) AtomicLongGetCodec(com.hazelcast.client.impl.protocol.codec.AtomicLongGetCodec) ClientInvocation(com.hazelcast.client.impl.spi.impl.ClientInvocation) ClientMessage(com.hazelcast.client.impl.protocol.ClientMessage) ClientInvocationFuture(com.hazelcast.client.impl.spi.impl.ClientInvocationFuture)

Aggregations

ClientDelegatingFuture (com.hazelcast.client.impl.ClientDelegatingFuture)1 ClientMessage (com.hazelcast.client.impl.protocol.ClientMessage)1 AtomicLongGetCodec (com.hazelcast.client.impl.protocol.codec.AtomicLongGetCodec)1 ClientInvocation (com.hazelcast.client.impl.spi.impl.ClientInvocation)1 ClientInvocationFuture (com.hazelcast.client.impl.spi.impl.ClientInvocationFuture)1