Search in sources :

Example 1 with DelegatingFuture

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());
}
Also used : NodeEngine(com.hazelcast.spi.NodeEngine) Data(com.hazelcast.nio.serialization.Data) DelegatingFuture(com.hazelcast.util.executor.DelegatingFuture)

Example 2 with DelegatingFuture

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());
}
Also used : Data(com.hazelcast.nio.serialization.Data) DelegatingFuture(com.hazelcast.util.executor.DelegatingFuture)

Example 3 with DelegatingFuture

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());
}
Also used : InternalCompletableFuture(com.hazelcast.spi.InternalCompletableFuture) Data(com.hazelcast.nio.serialization.Data) MapService(com.hazelcast.map.impl.MapService) DelegatingFuture(com.hazelcast.util.executor.DelegatingFuture)

Aggregations

Data (com.hazelcast.nio.serialization.Data)3 DelegatingFuture (com.hazelcast.util.executor.DelegatingFuture)3 MapService (com.hazelcast.map.impl.MapService)1 InternalCompletableFuture (com.hazelcast.spi.InternalCompletableFuture)1 NodeEngine (com.hazelcast.spi.NodeEngine)1