Spring Integration

Class ExponentialMovingAverageRatio

  extended by org.springframework.integration.monitor.ExponentialMovingAverageRatio

public class ExponentialMovingAverageRatio
extends java.lang.Object

Cumulative statistics for success ratio with higher weight given to recent data but without storing any history. Clients call success() or failure() when an event occurs, and the ratio of success to total events is accumulated. Older values are given exponentially smaller weight, with a decay factor determined by a duration chosen by the client. The rate measurement weights decay in two dimensions: