Class Rampup


  • public class Rampup
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.util.function.Function<reactor.core.publisher.Flux<T>,​reactor.core.publisher.Flux<T>> rampup​(long startRps, long targetRps, java.time.Duration duration)
      Defines a linear ramp up of the load beginning with the start rate until target rate is reached.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • rampup

        public static <T> java.util.function.Function<reactor.core.publisher.Flux<T>,​reactor.core.publisher.Flux<T>> rampup​(long startRps,
                                                                                                                                  long targetRps,
                                                                                                                                  java.time.Duration duration)
        Defines a linear ramp up of the load beginning with the start rate until target rate is reached. Rates are defined in requests per second.
        Parameters:
        startRps - start rate in request per second
        targetRps - end rate in requests per second
        duration - time given to reach target rate
        Returns:
        Function for a Flux transformation