java.lang.Object
io.smallrye.mutiny.subscription.FixedDemandPacer
- All Implemented Interfaces:
DemandPacer
A demand pacer with a fixed delay / fixed demand.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.smallrye.mutiny.subscription.DemandPacer
DemandPacer.Request -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(DemandPacer.Request previousRequest, long observedItemsCount) Evaluate the next request after the previous request delay has expired.initial()Get the initial request.
-
Constructor Details
-
FixedDemandPacer
-
-
Method Details
-
initial
Description copied from interface:DemandPacerGet the initial request.This will be called at the
Multi.paceDemand()operator subscription time.- Specified by:
initialin interfaceDemandPacer- Returns:
- the request, must not be
null
-
apply
Description copied from interface:DemandPacerEvaluate the next request after the previous request delay has expired.- Specified by:
applyin interfaceDemandPacer- Parameters:
previousRequest- the previous requestobservedItemsCount- the number of emitted items that have been observed since the last request- Returns:
- the request, must not be
null
-