Package org.springframework.retry.stats
Class ExponentialAverageRetryStatistics
java.lang.Object
org.springframework.core.AttributeAccessorSupport
org.springframework.retry.stats.DefaultRetryStatistics
org.springframework.retry.stats.ExponentialAverageRetryStatistics
- All Implemented Interfaces:
Serializable,org.springframework.core.AttributeAccessor,RetryStatistics,MutableRetryStatistics
- Author:
- Dave Syer
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintdoubleintintvoidvoidvoidvoidvoidvoidsetWindow(long window) Window in milliseconds for exponential decay factor in rolling average.Methods inherited from class org.springframework.retry.stats.DefaultRetryStatistics
getAbortCount, getCompleteCount, getErrorCount, getName, getRecoveryCount, getStartedCount, setName, toStringMethods inherited from class org.springframework.core.AttributeAccessorSupport
attributeNames, computeAttribute, copyAttributesFrom, equals, getAttribute, hasAttribute, hashCode, removeAttribute, setAttributeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.core.AttributeAccessor
attributeNames, computeAttribute, getAttribute, hasAttribute, removeAttribute, setAttribute
-
Constructor Details
-
ExponentialAverageRetryStatistics
-
-
Method Details
-
setWindow
public void setWindow(long window) Window in milliseconds for exponential decay factor in rolling average.- Parameters:
window- the window to set
-
getRollingStartedCount
public int getRollingStartedCount() -
getRollingErrorCount
public int getRollingErrorCount() -
getRollingAbortCount
public int getRollingAbortCount() -
getRollingRecoveryCount
public int getRollingRecoveryCount() -
getRollingCompleteCount
public int getRollingCompleteCount() -
getRollingErrorRate
public double getRollingErrorRate() -
incrementStartedCount
public void incrementStartedCount()- Specified by:
incrementStartedCountin interfaceMutableRetryStatistics- Overrides:
incrementStartedCountin classDefaultRetryStatistics
-
incrementCompleteCount
public void incrementCompleteCount()- Specified by:
incrementCompleteCountin interfaceMutableRetryStatistics- Overrides:
incrementCompleteCountin classDefaultRetryStatistics
-
incrementRecoveryCount
public void incrementRecoveryCount()- Specified by:
incrementRecoveryCountin interfaceMutableRetryStatistics- Overrides:
incrementRecoveryCountin classDefaultRetryStatistics
-
incrementErrorCount
public void incrementErrorCount()- Specified by:
incrementErrorCountin interfaceMutableRetryStatistics- Overrides:
incrementErrorCountin classDefaultRetryStatistics
-
incrementAbortCount
public void incrementAbortCount()- Specified by:
incrementAbortCountin interfaceMutableRetryStatistics- Overrides:
incrementAbortCountin classDefaultRetryStatistics
-