Package io.smallrye.mutiny.math
Class CountOperator<T>
- java.lang.Object
-
- io.smallrye.mutiny.math.CountOperator<T>
-
- Type Parameters:
T- type of the incoming items.
public class CountOperator<T> extends java.lang.Object implements java.util.function.Function<Multi<T>,Multi<java.lang.Long>>
Count operator emitting the current count. Everytime it gets an item from upstream, it emits the count. If the stream emits the completion event without having emitting any item before, 0 is emitted, followed by the completion event. If the upstream emits a failure, the failure is propagated.
-
-
Constructor Summary
Constructors Constructor Description CountOperator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Multi<java.lang.Long>apply(Multi<T> multi)
-