- java.lang.Object
-
- io.smallrye.mutiny.groups.MultiDemandPacing<T>
-
public class MultiDemandPacing<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MultiDemandPacing(AbstractMulti<T> upstream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiDemandPacing<T>on(java.util.concurrent.ScheduledExecutorService executor)Sets the executor to use for issuing demand requests.Multi<T>using(DemandPacer pacer)Sets the demand pacer and return the newMulti.
-
-
-
Constructor Detail
-
MultiDemandPacing
public MultiDemandPacing(AbstractMulti<T> upstream)
-
-
Method Detail
-
on
@CheckReturnValue public MultiDemandPacing<T> on(java.util.concurrent.ScheduledExecutorService executor)
Sets the executor to use for issuing demand requests. The default is to useInfrastructure.getDefaultWorkerPool().- Parameters:
executor- the executor, must not benull- Returns:
- this group
-
using
@CheckReturnValue public Multi<T> using(DemandPacer pacer)
Sets the demand pacer and return the newMulti.- Parameters:
pacer- the pacer, must not benull- Returns:
- the new
Multi
-
-