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);
}
Aggregations