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 Details

    • LastOfCollector

      public LastOfCollector()
  • Method Details

    • finisher

      public Function<List<T>,T> finisher()
      Description copied from interface: Task.Collector
      Perform 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(PofReader in) throws IOException
      Description copied from interface: PortableObject
      Restore 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

      public void writeExternal(PofWriter out) throws IOException
      Description copied from interface: PortableObject
      Save 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