Uses of Interface
com.oracle.coherence.concurrent.executor.Task.Collector
-
Packages that use Task.Collector Package Description com.oracle.coherence.concurrent.executor Classes to allow submission of tasks to the grid for execution. -
-
Uses of Task.Collector in com.oracle.coherence.concurrent.executor
Classes in com.oracle.coherence.concurrent.executor that implement Task.Collector Modifier and Type Class Description classAbstractCollector<T,R>An abstractTask.Collector.classConditionalCollector<T,A,R>ATask.Collectorthat conditionally collects values based on the available result.static classTaskCollectors.CountCollector<T>ATask.Collectorthat counts the number of results are present.static classTaskCollectors.FirstOfCollector<T>ATask.Collectorto collect any (the first provided) available result.static classTaskCollectors.LastOfCollector<T>ATask.Collectorthat collects and returns the last contributed result.static classTaskCollectors.ListOfCollector<T>ATask.Collectorthat collects and returns all contributed results that are values as aList.static classTaskCollectors.SetOfCollector<T>ATask.Collectorthat collects and returns all contributed results that are values as aSet.Fields in com.oracle.coherence.concurrent.executor declared as Task.Collector Modifier and Type Field Description protected Task.Collector<? super T,?,R>AbstractCollectable. m_collectorTheTask.Collectorfor theTask.protected Task.Collector<T,A,R>ClusteredTaskManager. m_collectorTheTask.Collectorfor theTaskresult(s).protected Task.Collector<T,A,R>ConditionalCollector. m_collectorTheTask.Collectorto use when theRemote.Predicateis satisfied.Methods in com.oracle.coherence.concurrent.executor that return Task.Collector Modifier and Type Method Description static <T> Task.Collector<? super T,?,Integer>TaskCollectors. count()ATask.Collectorthat counts the number of non-null results that have been made.static <T> Task.Collector<T,?,T>TaskCollectors. firstOf()ATask.Collectorthat will collect the first provided result.static <T> Task.Collector<T,?,T>TaskCollectors. lastOf()ATask.Collectorthat returns the last added result, when all results have been provided.static <T> Task.Collector<T,?,List<T>>TaskCollectors. listOf()ATask.Collectorthat returns theListof results that are values.static <T> Task.Collector<T,?,Set<T>>TaskCollectors. setOf()ATask.Collectorthat returns theSetof results that are values.Methods in com.oracle.coherence.concurrent.executor with parameters of type Task.Collector Modifier and Type Method Description <R> Task.Collectable<T,R>ClusteredOrchestration. collect(Task.Collector<? super T,?,R> collector)<R> Task.Collectable<T,R>Task.Orchestration. 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.protected <T,A,R>
Task.Coordinator<R>ClusteredExecutorService. submit(Task<T> task, String sTaskId, ExecutionStrategy strategy, OptionsByType<Task.Option> optionsByType, Task.Properties properties, Task.Collector<? super T,A,R> collector, com.tangosol.util.function.Remote.Predicate<? super R> completionPredicate, Task.CompletionRunnable<? super R> completionRunnable, Duration retainDuration, Iterator<Task.Subscriber<? super R>> subscribers)Submit aTaskfor execution with the given taskId,ExecutionStrategy,OptionsByType, result collector, completionRemote.Predicate, andTask.Subscriber(s).Constructors in com.oracle.coherence.concurrent.executor with parameters of type Task.Collector Constructor Description AbstractCollectable(O orchestration, Task.Collector<? super T,?,R> collector)Constructs aTask.Collectablebased on anTask.Orchestration.ClusteredTaskManager(String sTaskId, Task<T> task, ExecutionStrategy executionStrategy, Task.Collector<? super T,A,R> collector, com.tangosol.util.function.Remote.Predicate<? super R> completionPredicate, Task.CompletionRunnable<? super R> completionRunnable, Duration retainDuration, OptionsByType<Task.Option> optionsByType)Constructs aClusteredTaskManagerfor the specifiedTask.ConditionalCollector(com.tangosol.util.function.Remote.Predicate<? super Iterator<T>> predicate, Task.Collector<? super T,A,R> collector, R defaultResult)Constructs aConditionalCollector.
-