Search in sources :

Example 1 with CacheGetAndRemoveCodec

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

the class ClientCacheProxySupport method getAndRemoveInternal.

private <T> ClientDelegatingFuture<T> getAndRemoveInternal(Data keyData, boolean withCompletionEvent) {
    int completionId = withCompletionEvent ? nextCompletionId() : -1;
    ClientMessage request = CacheGetAndRemoveCodec.encodeRequest(nameWithPrefix, keyData, completionId);
    ClientInvocationFuture future = invoke(request, keyData, completionId);
    return newDelegatingFuture(future, CacheGetAndRemoveCodec::decodeResponse);
}
Also used : CacheGetAndRemoveCodec(com.hazelcast.client.impl.protocol.codec.CacheGetAndRemoveCodec) ClientMessage(com.hazelcast.client.impl.protocol.ClientMessage) ClientInvocationFuture(com.hazelcast.client.impl.spi.impl.ClientInvocationFuture)

Aggregations

ClientMessage (com.hazelcast.client.impl.protocol.ClientMessage)1 CacheGetAndRemoveCodec (com.hazelcast.client.impl.protocol.codec.CacheGetAndRemoveCodec)1 ClientInvocationFuture (com.hazelcast.client.impl.spi.impl.ClientInvocationFuture)1