Class TaskCollectors.LastOfCollector<T>
- java.lang.Object
-
- com.oracle.coherence.concurrent.executor.AbstractCollector<T,T>
-
- com.oracle.coherence.concurrent.executor.TaskCollectors.LastOfCollector<T>
-
- Type Parameters:
T- the type of result
- All Implemented Interfaces:
Task.Collector<T,List<T>,T>,com.tangosol.io.ExternalizableLite,com.tangosol.io.pof.PortableObject,Serializable
- Enclosing class:
- TaskCollectors
public static class TaskCollectors.LastOfCollector<T> extends AbstractCollector<T,T>
ATask.Collectorthat collects and returns the last contributed result.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LastOfCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Function<List<T>,T>finisher()Perform the final transformation from the intermediate accumulation type A to the final result type R.voidreadExternal(com.tangosol.io.pof.PofReader in)voidreadExternal(DataInput in)voidwriteExternal(com.tangosol.io.pof.PofWriter out)voidwriteExternal(DataOutput out)-
Methods inherited from class com.oracle.coherence.concurrent.executor.AbstractCollector
accumulator, finishable, supplier
-
-
-
-
Method Detail
-
finisher
public Function<List<T>,T> finisher()
Description copied from interface:Task.CollectorPerform the final transformation from the intermediate accumulation type A to the final result type R.- Returns:
- a function which transforms the intermediate result to the final result
-
readExternal
public void readExternal(DataInput in) throws IOException
- Throws:
IOException
-
writeExternal
public void writeExternal(DataOutput out) throws IOException
- Throws:
IOException
-
readExternal
public void readExternal(com.tangosol.io.pof.PofReader in) throws IOException- Throws:
IOException
-
writeExternal
public void writeExternal(com.tangosol.io.pof.PofWriter out) throws IOException- Throws:
IOException
-
-