public class DefaultRetryStatistics extends org.springframework.core.AttributeAccessorSupport implements RetryStatistics, MutableRetryStatistics
| Constructor and Description |
|---|
DefaultRetryStatistics(String name) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAbortCount()
Get the number of times a block failed to complete successfully, even
after retry.
|
int |
getCompleteCount() |
int |
getErrorCount()
Get the number of errors detected, whether or not they resulted in a
retry.
|
String |
getName()
Get an identifier for the retry block for reporting purposes.
|
int |
getRecoveryCount()
Get the number of times a recovery callback was applied.
|
int |
getStartedCount()
Get the number of times a retry block has been entered, irrespective of
how many times the operation was retried.
|
void |
incrementAbortCount() |
void |
incrementCompleteCount() |
void |
incrementErrorCount() |
void |
incrementRecoveryCount() |
void |
incrementStartedCount() |
void |
setName(String name) |
String |
toString() |
attributeNames, copyAttributesFrom, equals, getAttribute, hasAttribute, hashCode, removeAttribute, setAttributepublic DefaultRetryStatistics(String name)
public int getCompleteCount()
getCompleteCount in interface RetryStatisticspublic int getStartedCount()
RetryStatisticsgetStartedCount in interface RetryStatisticspublic int getErrorCount()
RetryStatisticsgetErrorCount in interface RetryStatisticspublic int getAbortCount()
RetryStatisticsgetAbortCount in interface RetryStatisticspublic String getName()
RetryStatisticsgetName in interface RetryStatisticspublic int getRecoveryCount()
RetryStatisticsgetRecoveryCount in interface RetryStatisticspublic void setName(String name)
public void incrementStartedCount()
incrementStartedCount in interface MutableRetryStatisticspublic void incrementCompleteCount()
incrementCompleteCount in interface MutableRetryStatisticspublic void incrementRecoveryCount()
incrementRecoveryCount in interface MutableRetryStatisticspublic void incrementErrorCount()
incrementErrorCount in interface MutableRetryStatisticspublic void incrementAbortCount()
incrementAbortCount in interface MutableRetryStatisticsCopyright © 2018 SpringSource. All rights reserved.