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;
}
Aggregations