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, setAttribute
public DefaultRetryStatistics(String name)
public int getCompleteCount()
getCompleteCount
in interface RetryStatistics
public int getStartedCount()
RetryStatistics
getStartedCount
in interface RetryStatistics
public int getErrorCount()
RetryStatistics
getErrorCount
in interface RetryStatistics
public int getAbortCount()
RetryStatistics
getAbortCount
in interface RetryStatistics
public String getName()
RetryStatistics
getName
in interface RetryStatistics
public int getRecoveryCount()
RetryStatistics
getRecoveryCount
in interface RetryStatistics
public void setName(String name)
public void incrementStartedCount()
incrementStartedCount
in interface MutableRetryStatistics
public void incrementCompleteCount()
incrementCompleteCount
in interface MutableRetryStatistics
public void incrementRecoveryCount()
incrementRecoveryCount
in interface MutableRetryStatistics
public void incrementErrorCount()
incrementErrorCount
in interface MutableRetryStatistics
public void incrementAbortCount()
incrementAbortCount
in interface MutableRetryStatistics
Copyright © 2018 SpringSource. All rights reserved.