List of usage examples for org.springframework.integration.support.management ExponentialMovingAverageRate ExponentialMovingAverageRate
public ExponentialMovingAverageRate(double period, double lapsePeriod, int window, boolean millis)
From source file:org.springframework.integration.channel.management.DefaultMessageChannelMetrics.java
/** * Construct an instance with default metrics with {@code window=10, period=1 second, * lapsePeriod=1 minute}.//from w ww . jav a 2s .c o m * @param name the name. */ public DefaultMessageChannelMetrics(String name) { this(name, new ExponentialMovingAverage(DEFAULT_MOVING_AVERAGE_WINDOW, 1000000.), new ExponentialMovingAverageRate(ONE_SECOND_SECONDS, ONE_MINUTE_SECONDS, DEFAULT_MOVING_AVERAGE_WINDOW, true), new ExponentialMovingAverageRatio(ONE_MINUTE_SECONDS, DEFAULT_MOVING_AVERAGE_WINDOW, true), new ExponentialMovingAverageRate(ONE_SECOND_SECONDS, ONE_MINUTE_SECONDS, DEFAULT_MOVING_AVERAGE_WINDOW, true)); }