接口 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.
-
-
方法详细资料
-
on
void on(T value, boolean last)
Called when meet a new element- 参数:
value- the element valuelast- if is last element
-
-