Search in sources :

Example 1 with CacheRemoveCodec

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

the class ClientCacheProxySupport method doRemoveOnServer.

@Nonnull
private InternalCompletableFuture<Boolean> doRemoveOnServer(Data keyData, Data oldValueData, boolean withCompletionEvent) {
    int completionId = withCompletionEvent ? nextCompletionId() : -1;
    ClientMessage request = CacheRemoveCodec.encodeRequest(nameWithPrefix, keyData, oldValueData, completionId);
    ClientInvocationFuture future = invoke(request, keyData, completionId);
    return newDelegatingFuture(future, CacheRemoveCodec::decodeResponse);
}
Also used : CacheRemoveCodec(com.hazelcast.client.impl.protocol.codec.CacheRemoveCodec) ClientMessage(com.hazelcast.client.impl.protocol.ClientMessage) ClientInvocationFuture(com.hazelcast.client.impl.spi.impl.ClientInvocationFuture) Nonnull(javax.annotation.Nonnull)

Aggregations

ClientMessage (com.hazelcast.client.impl.protocol.ClientMessage)1 CacheRemoveCodec (com.hazelcast.client.impl.protocol.codec.CacheRemoveCodec)1 ClientInvocationFuture (com.hazelcast.client.impl.spi.impl.ClientInvocationFuture)1 Nonnull (javax.annotation.Nonnull)1