use of com.hazelcast.client.impl.protocol.codec.CachePutCodec in project hazelcast by hazelcast.
the class ClientCacheProxySupport method callPutSync.
protected V callPutSync(K key, Data keyData, V value, Data valueData, Data expiryPolicyData, boolean isGet) throws InterruptedException, ExecutionException {
ClientInvocationFuture invocationFuture = putInternal(keyData, valueData, expiryPolicyData, isGet, true);
ClientDelegatingFuture<V> delegatingFuture = newDelegatingFuture(invocationFuture, CachePutCodec::decodeResponse);
return delegatingFuture.get();
}
use of com.hazelcast.client.impl.protocol.codec.CachePutCodec in project hazelcast by hazelcast.
the class ClientCacheProxySupport method callPutAsync.
protected CompletableFuture callPutAsync(K key, Data keyData, V value, Data valueData, Data expiryPolicyData, boolean isGet, boolean withCompletionEvent, BiConsumer<V, Throwable> statsCallback) {
ClientInvocationFuture invocationFuture = putInternal(keyData, valueData, expiryPolicyData, isGet, withCompletionEvent);
InternalCompletableFuture future = newDelegatingFuture(invocationFuture, CachePutCodec::decodeResponse);
return addCallback(future, statsCallback);
}
Aggregations