Class TaskCollectors.FirstOfCollector<T>

    • Constructor Detail

      • FirstOfCollector

        public FirstOfCollector()
    • Method Detail

      • finishable

        public com.tangosol.util.function.Remote.Predicate<AtomicReference<T>> finishable()
        Description copied from interface: Task.Collector
        A Remote.Predicate to determine if a result container can be finished early avoiding further accumulation of results using the container.

        Should there be no further results to accumulate, finishing the result container with the Task.Collector.finisher() will occur regardless of the result returned by the Remote.Predicate.

        Specified by:
        finishable in interface Task.Collector<T,​AtomicReference<T>,​T>
        Returns:
        a Remote.Predicate
      • readExternal

        public void readExternal​(DataInput in)
                          throws IOException
        Specified by:
        readExternal in interface com.tangosol.io.ExternalizableLite
        Throws:
        IOException
      • writeExternal

        public void writeExternal​(DataOutput out)
                           throws IOException
        Specified by:
        writeExternal in interface com.tangosol.io.ExternalizableLite
        Throws:
        IOException
      • readExternal

        public void readExternal​(com.tangosol.io.pof.PofReader in)
                          throws IOException
        Specified by:
        readExternal in interface com.tangosol.io.pof.PortableObject
        Throws:
        IOException
      • writeExternal

        public void writeExternal​(com.tangosol.io.pof.PofWriter out)
                           throws IOException
        Specified by:
        writeExternal in interface com.tangosol.io.pof.PortableObject
        Throws:
        IOException