Interface Task.Orchestration<T>
- Type Parameters:
T- the type of results produced by aTask
- All Superinterfaces:
Task.SubscribedOrchestration<T>
Defines information concerning the orchestration of a
Task across a set
of Executors for a given TaskExecutorService. This information
represents the first part of an orchestration pipeline definition, which is
agnostic to the final type of result. The optional second and last part of an
orchestration pipeline is defined by the Task.Collectable, produced when
collect(Collector) is called. Task.SubscribedOrchestration.subscribe(Subscriber) (optional)
and Task.SubscribedOrchestration.submit() may be called directly on the Task.Orchestration if using
a Task.Collector is not desired.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionSets the unique identity for theTaskwhen it is orchestrated.<R> Task.Collectable<T, R> collect(Task.Collector<? super T, ?, R> collector) Creates aTask.Collectablefor theTaskusing the specifiedTask.Collector, that will collect individual results fromTasks when they are executed with orchestratedExecutors.<V extends Serializable>
Task.Orchestration<T> Defines theTask.Propertiesfor theTask.filter(Remote.Predicate<? super com.oracle.coherence.concurrent.executor.TaskExecutorService.ExecutorInfo> predicate) Limit theExecutors to only those that satisfy the specifiedRemote.Predicate.limit(int cLimit) Sets theDurationto retain the task after it is completed.with(Task.Option... options) Sets theTask.Options for orchestration.Methods inherited from interface com.oracle.coherence.concurrent.executor.Task.SubscribedOrchestration
submit, subscribe
-
Method Details
-
concurrently
Task.Orchestration<T> concurrently()Specify that theTaskshould be executed concurrently on its assignedExecutors.This is the default setting for execution.
- Returns:
- the
Task.Orchestrationto permit fluent-style method chaining
-
sequentially
Task.Orchestration<T> sequentially()- Returns:
- the
Task.Orchestrationto permit fluent-style method chaining
-
filter
Task.Orchestration<T> filter(Remote.Predicate<? super com.oracle.coherence.concurrent.executor.TaskExecutorService.ExecutorInfo> predicate) Limit theExecutors to only those that satisfy the specifiedRemote.Predicate.- Parameters:
predicate- theTaskExecutorService.ExecutorInfopredicate- Returns:
- the
Task.Orchestrationto permit fluent-style method chaining
-
limit
- Parameters:
cLimit- the number ofExecutors to use- Returns:
- the
Task.Orchestrationto permit fluent-style method chaining
-
as
Sets the unique identity for theTaskwhen it is orchestrated.- Parameters:
sIdentity- the unique identity for theTask- Returns:
- the
Task.Orchestrationto permit fluent-style method chaining
-
with
Sets theTask.Options for orchestration.- Parameters:
options- theTask.Option- Returns:
- the
Task.Orchestrationto permit fluent-style method chaining
-
define
Defines theTask.Propertiesfor theTask.- Type Parameters:
V- the value type of the property- Parameters:
sName- the name of the propertyvalue- the value of the property- Returns:
- the
Task.Orchestrationto permit fluent-style method chaining
-
retain
Sets theDurationto retain the task after it is completed.- Parameters:
duration- the duration to retain the task after it is completed.- Returns:
- the
Task.Orchestrationto permit fluent-style method chaining
-
collect
Creates aTask.Collectablefor theTaskusing the specifiedTask.Collector, that will collect individual results fromTasks when they are executed with orchestratedExecutors.- Type Parameters:
R- the collected result type- Parameters:
collector- theTask.Collector- Returns:
- the
Task.Collectablefor theTask
-