Search in sources :

Example 1 with NonCompletableFuture

use of com.hazelcast.jet.impl.util.NonCompletableFuture in project hazelcast by hazelcast.

the class AbstractJobProxy method doSubmitJob.

private NonCompletableFuture doSubmitJob(Object jobDefinition, JobConfig config) {
    NonCompletableFuture submitFuture = new NonCompletableFuture();
    SubmitJobCallback callback = new SubmitJobCallback(submitFuture, jobDefinition, config);
    invokeSubmitJob(serializationService().toData(jobDefinition), config).whenCompleteAsync(callback);
    return submitFuture;
}
Also used : NonCompletableFuture(com.hazelcast.jet.impl.util.NonCompletableFuture)

Aggregations

NonCompletableFuture (com.hazelcast.jet.impl.util.NonCompletableFuture)1