use of com.hazelcast.client.impl.protocol.codec.CachePutIfAbsentCodec in project hazelcast by hazelcast.
the class ClientCacheProxySupport method doPutIfAbsentOnServer.
private InternalCompletableFuture<Boolean> doPutIfAbsentOnServer(Data keyData, Data valueData, Data expiryPolicyData, boolean withCompletionEvent) {
int completionId = withCompletionEvent ? nextCompletionId() : -1;
ClientMessage request = CachePutIfAbsentCodec.encodeRequest(nameWithPrefix, keyData, valueData, expiryPolicyData, completionId);
ClientInvocationFuture future = invoke(request, keyData, completionId);
return newDelegatingFuture(future, CachePutIfAbsentCodec::decodeResponse);
}
Aggregations