use of com.hazelcast.util.executor.DelegatingFuture in project hazelcast by hazelcast.
the class MapProxyImpl method getAsync.
@Override
public ICompletableFuture<V> getAsync(K k) {
checkNotNull(k, NULL_KEY_IS_NOT_ALLOWED);
Data key = toData(k, partitionStrategy);
NodeEngine nodeEngine = getNodeEngine();
return new DelegatingFuture<V>(getAsyncInternal(key), nodeEngine.getSerializationService());
}
use of com.hazelcast.util.executor.DelegatingFuture in project hazelcast by hazelcast.
the class MapProxyImpl method removeAsync.
@Override
public ICompletableFuture<V> removeAsync(K key) {
checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED);
Data dataKey = toData(key, partitionStrategy);
return new DelegatingFuture<V>(removeAsyncInternal(dataKey), getNodeEngine().getSerializationService());
}
use of com.hazelcast.util.executor.DelegatingFuture in project hazelcast by hazelcast.
the class MapProxyImpl method submitToKey.
@Override
public ICompletableFuture submitToKey(K key, EntryProcessor entryProcessor) {
checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED);
MapService service = getService();
Data keyData = toData(key, partitionStrategy);
InternalCompletableFuture f = executeOnKeyInternal(keyData, entryProcessor, null);
return new DelegatingFuture(f, service.getMapServiceContext().getNodeEngine().getSerializationService());
}
Aggregations