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
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
double
int
int
void
void
void
void
void
void
setWindow
(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, toString
Methods inherited from class org.springframework.core.AttributeAccessorSupport
attributeNames, computeAttribute, copyAttributesFrom, equals, getAttribute, hasAttribute, hashCode, removeAttribute, setAttribute
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
incrementStartedCount
in interfaceMutableRetryStatistics
- Overrides:
incrementStartedCount
in classDefaultRetryStatistics
-
incrementCompleteCount
public void incrementCompleteCount()- Specified by:
incrementCompleteCount
in interfaceMutableRetryStatistics
- Overrides:
incrementCompleteCount
in classDefaultRetryStatistics
-
incrementRecoveryCount
public void incrementRecoveryCount()- Specified by:
incrementRecoveryCount
in interfaceMutableRetryStatistics
- Overrides:
incrementRecoveryCount
in classDefaultRetryStatistics
-
incrementErrorCount
public void incrementErrorCount()- Specified by:
incrementErrorCount
in interfaceMutableRetryStatistics
- Overrides:
incrementErrorCount
in classDefaultRetryStatistics
-
incrementAbortCount
public void incrementAbortCount()- Specified by:
incrementAbortCount
in interfaceMutableRetryStatistics
- Overrides:
incrementAbortCount
in classDefaultRetryStatistics
-