List of usage examples for org.springframework.integration.support.management ExponentialMovingAverageRatio ExponentialMovingAverageRatio
public ExponentialMovingAverageRatio(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}.// w w w. j a v a2s . c om * @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)); }