use of com.hazelcast.client.impl.protocol.codec.MapSubmitToKeyCodec in project hazelcast by hazelcast.
the class ClientMapProxy method submitToKeyInternal.
public <R> InternalCompletableFuture<R> submitToKeyInternal(Object key, EntryProcessor<K, V, R> entryProcessor) {
try {
Data keyData = toData(key);
ClientMessage request = MapSubmitToKeyCodec.encodeRequest(name, toData(entryProcessor), keyData, getThreadId());
ClientInvocationFuture future = invokeOnKeyOwner(request, keyData);
SerializationService ss = getSerializationService();
return new ClientDelegatingFuture(future, ss, MapSubmitToKeyCodec::decodeResponse);
} catch (Exception e) {
throw rethrow(e);
}
}
Aggregations