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> ExternalizableLite,PortableObject,Serializable
- Enclosing class:
 TaskCollectors
public static class TaskCollectors.LastOfCollector<T>
extends com.oracle.coherence.concurrent.executor.AbstractCollector<T,T> 
A 
Task.Collector that collects and returns the last contributed result.- See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionfinisher()Perform the final transformation from the intermediate accumulation type A to the final result type R.voidRestore the contents of a user type instance by reading its state using the specified PofReader object.voidwriteExternal(PofWriter out) Save the contents of a POF user type instance by writing its state using the specified PofWriter object.Methods inherited from class com.oracle.coherence.concurrent.executor.AbstractCollector
accumulator, finishable, supplierMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tangosol.io.ExternalizableLite
readExternal, writeExternal 
- 
Constructor Details
- 
LastOfCollector
public LastOfCollector() 
 - 
 - 
Method Details
- 
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
Description copied from interface:PortableObjectRestore the contents of a user type instance by reading its state using the specified PofReader object.- Parameters:
 in- the PofReader from which to read the object's state- Throws:
 IOException- if an I/O error occurs
 - 
writeExternal
Description copied from interface:PortableObjectSave the contents of a POF user type instance by writing its state using the specified PofWriter object.- Parameters:
 out- the PofWriter to which to write the object's state- Throws:
 IOException- if an I/O error occurs
 
 -