Class AbstractCollector<T,​R>

    • Constructor Detail

      • AbstractCollector

        public AbstractCollector()
    • Method Detail

      • finishable

        public com.tangosol.util.function.Remote.Predicate<List<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,​List<T>,​R>
        Returns:
        a Remote.Predicate
      • supplier

        public Supplier<List<T>> supplier()
        Description copied from interface: Task.Collector
        A function that creates and returns a new mutable result container.
        Specified by:
        supplier in interface Task.Collector<T,​List<T>,​R>
        Returns:
        a function which returns a new mutable result container