Search in sources :

Example 21 with ICompletableFuture

use of com.hazelcast.core.ICompletableFuture in project hazelcast by hazelcast.

the class AbstractPartitionMessageTask method processMessage.

@Override
public final void processMessage() {
    beforeProcess();
    Operation op = prepareOperation();
    op.setCallerUuid(endpoint.getUuid());
    ICompletableFuture f = nodeEngine.getOperationService().createInvocationBuilder(getServiceName(), op, getPartitionId()).setResultDeserialized(false).invoke();
    f.andThen(this, this);
}
Also used : ICompletableFuture(com.hazelcast.core.ICompletableFuture) Operation(com.hazelcast.spi.Operation)

Aggregations

ICompletableFuture (com.hazelcast.core.ICompletableFuture)21 Test (org.junit.Test)17 ParallelTest (com.hazelcast.test.annotation.ParallelTest)16 QuickTest (com.hazelcast.test.annotation.QuickTest)16 HazelcastInstance (com.hazelcast.core.HazelcastInstance)4 IExecutorService (com.hazelcast.core.IExecutorService)4 Data (com.hazelcast.nio.serialization.Data)3 TestHazelcastInstanceFactory (com.hazelcast.test.TestHazelcastInstanceFactory)3 CountDownLatch (java.util.concurrent.CountDownLatch)3 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)3 Operation (com.hazelcast.spi.Operation)2 ExecutionException (java.util.concurrent.ExecutionException)2 ClientInvocationFuture (com.hazelcast.client.spi.impl.ClientInvocationFuture)1 IAtomicLong (com.hazelcast.core.IAtomicLong)1 NightlyTest (com.hazelcast.test.annotation.NightlyTest)1