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