Package akka.stream.impl
Class FirstReducerState<T,R>
- java.lang.Object
-
- akka.stream.impl.FirstReducerState<T,R>
-
- All Implemented Interfaces:
ReducerState<T,R>
public final class FirstReducerState<T,R> extends java.lang.Object implements ReducerState<T,R>
INTERNAL APIHelper class to be able to express reduce as a fold for parallel collector
-
-
Constructor Summary
Constructors Constructor Description FirstReducerState(scala.Function0<java.util.stream.Collector<T,java.lang.Object,R>> collectorFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description R
finish()
ReducerState<T,R>
update(java.lang.Object batch)
-
-
-
Method Detail
-
finish
public R finish()
- Specified by:
finish
in interfaceReducerState<T,R>
-
update
public ReducerState<T,R> update(java.lang.Object batch)
- Specified by:
update
in interfaceReducerState<T,R>
-
-