Class LocalMAccumulator<IN,​OUT>

    • Constructor Detail

      • LocalMAccumulator

        protected LocalMAccumulator​(String name)
        Instantiates a new Local m accumulator.
        Parameters:
        name - the name of the accumulator (null is ok)
    • Method Detail

      • report

        public void report​(SerializablePredicate<? super OUT> when,
                           Consumer<OUT> message)
        Description copied from interface: MAccumulator
        Reports the given message when the given predicate evaluates to true.
        Specified by:
        report in interface MAccumulator<IN,​OUT>
        Parameters:
        when - the predicate controlling when the message should be performed
        message - a consumer processing the current value of the accumulator