Class ClusteredOrchestration<T>
- java.lang.Object
-
- com.oracle.coherence.concurrent.executor.AbstractOrchestration<T,ClusteredExecutorService>
-
- com.oracle.coherence.concurrent.executor.ClusteredOrchestration<T>
-
- Type Parameters:
T- the type of results produced by aTask
- All Implemented Interfaces:
Task.Orchestration<T>,Task.SubscribedOrchestration<T>
- Direct Known Subclasses:
NamedClusteredExecutorService.NamedOrchestration
public class ClusteredOrchestration<T> extends AbstractOrchestration<T,ClusteredExecutorService>
A clustered implementation of aTask.Orchestration.- Since:
- 21.12
- Author:
- phf
-
-
Field Summary
-
Fields inherited from class com.oracle.coherence.concurrent.executor.AbstractOrchestration
m_optionsByType, m_properties, m_retainDuration, m_setSubscribers, m_sTaskId, m_strategy, m_strategyBuilder, m_task, m_taskExecutorService
-
-
Constructor Summary
Constructors Constructor Description ClusteredOrchestration(ClusteredExecutorService clusteredExecutorService, Task<T> task)Constructs a newClusteredOrchestration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Task.Collectable<T,T>collect()Obtain aTask.Collectableusing the default collection mechanism.<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.-
Methods inherited from class com.oracle.coherence.concurrent.executor.AbstractOrchestration
as, concurrently, define, filter, getAssignmentStrategy, getOptionsByType, getProperties, getPropertiesSupplier, getRetainDuration, getTask, getTaskExecutorService, getTaskId, limit, retain, sequentially, submit, subscribe, with
-
-
-
-
Constructor Detail
-
ClusteredOrchestration
public ClusteredOrchestration(ClusteredExecutorService clusteredExecutorService, Task<T> task)
Constructs a newClusteredOrchestration.- Parameters:
clusteredExecutorService- theClusteredExecutorServicethat thisClusteredOrchestrationwill usetask- theTaskbeing orchestrated
-
-
Method Detail
-
collect
public <R> Task.Collectable<T,R> collect(Task.Collector<? super T,?,R> collector)
Description copied from interface:Task.OrchestrationCreates 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
-
collect
protected Task.Collectable<T,T> collect()
Description copied from class:AbstractOrchestrationObtain aTask.Collectableusing the default collection mechanism.- Specified by:
collectin classAbstractOrchestration<T,ClusteredExecutorService>- Returns:
- a
Task.Collectable
-
-