Class MultiDemandPacing<T>


  • public class MultiDemandPacing<T>
    extends java.lang.Object
    • 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 new Multi.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 use Infrastructure.getDefaultWorkerPool().
        Parameters:
        executor - the executor, must not be null
        Returns:
        this group
      • using

        @CheckReturnValue
        public Multi<T> using​(DemandPacer pacer)
        Sets the demand pacer and return the new Multi.
        Parameters:
        pacer - the pacer, must not be null
        Returns:
        the new Multi