Package com.oracle.coherence.concurrent.executor
Classes to allow submission of tasks to the grid for execution.
- Since:
- 21.12
-
Interface Summary Interface Description RemoteExecutor Task<T> A task which may take a long time to execute, may be executed by multipleExecutors, may generate intermediate results, and may yield for later execution.Task.Collectable<T,R> Provides the mechanism to submit, orchestrate and collect results from aTaskdefined as part of anTask.Orchestration, including the creation of aTask.Coordinatorto subscribe to results, manage and interact with an orchestratedTask.Task.Collector<T,A,R> A mutable reduction operation that accumulates results into a mutable result container, optionally transforming the accumulated result into a final representation after all results have been processed.Task.Completable<T,R> ATask.Collectablethat supports performing operations when aTaskorchestration is complete.Task.CompletionRunnable<T> A runnable to be called upon task completion.Task.Context<T> Task.Coordinator<T> Task.Option An option for configuringTaskorchestration.Task.Orchestration<T> Task.Properties Define an interface to allow states sharing between the task executors.Task.SubscribedOrchestration<T> Defines the subset ofTask.Orchestrationmethods which are permitted afterTask.SubscribedOrchestration.subscribe(Subscriber)is called.Task.Subscriber<T> A receiver of items produced by aTask.Coordinator.Task.Subscription<T> Represents a subscription aTask.Subscriberhas made to aTask.Coordinator, allowing control and termination of theTask.Subscription. -
Class Summary Class Description Result<T> TaskCollectors Static helper methods to createTask.Collectors.TaskCollectors.CountCollector<T> ATask.Collectorthat counts the number of results are present.TaskCollectors.FirstOfCollector<T> ATask.Collectorto collect any (the first provided) available result.TaskCollectors.LastOfCollector<T> ATask.Collectorthat collects and returns the last contributed result.TaskCollectors.ListOfCollector<T> ATask.Collectorthat collects and returns all contributed results that are values as aList.TaskCollectors.SetOfCollector<T> ATask.Collectorthat collects and returns all contributed results that are values as aSet. -
Exception Summary Exception Description Task.Yield