接口 LastAwareConsumer<T>

  • 类型参数:
    T - the value type

    public interface LastAwareConsumer<T>
    A Consumer, which knows if the value is the last one send to this consumer.
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      void on​(T value, boolean last)
      Called when meet a new element
    • 方法详细资料

      • on

        void on​(T value,
                boolean last)
        Called when meet a new element
        参数:
        value - the element value
        last - if is last element