Vadim Pakhnushev created IGNITE-24174:
-----------------------------------------
Summary: Unify compute API
Key: IGNITE-24174
URL: https://issues.apache.org/jira/browse/IGNITE-24174
Project: Ignite
Issue Type: Improvement
Components: compute
Reporter: Vadim Pakhnushev
Assignee: Vadim Pakhnushev
While investigating IGNITE-23601, it was found that the existing compute API
could be unified as follows:
{code:java}
CompletableFuture<JobExecution<R>> submitAsync(JobTarget target, CancelHandle
handle, ...);
CompletableFuture<BroadcastExecution<R>> submitAsync(BroadcastJobTarget target,
CancelHandle handle, ...);
R execute(JobTarget target, CancelHandle handle, ...);
Collection<R> execute(BroadcastJobTarget target, CancelHandle handle, ...);
interface BroadcastExecution {
CompletableFuture<Collection<R>> resultsAsync();
}
{code}
Remove submit and executeAsync methods.
Remove cancelAsync from the JobExecution, cancelling should be done only via
CancelHandle.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)