Interface FailureCache
- 
- All Known Implementing Classes:
 DefaultFailureCache
public interface FailureCacheIncrease and reset the number of errors associated with a specific identifier.- Since:
 - 4.3
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetErrorCount(java.lang.String identifier)Get the current error count.voidincreaseErrorCount(java.lang.String identifier)Increases the error count by one.voidresetErrorCount(java.lang.String identifier)Reset the error count back to zero. 
 - 
 
- 
- 
Method Detail
- 
getErrorCount
int getErrorCount(java.lang.String identifier)
Get the current error count.- Parameters:
 identifier- the identifier for which the error count is requested- Returns:
 - the currently known error count or zero if there is no record
 
 
- 
resetErrorCount
void resetErrorCount(java.lang.String identifier)
Reset the error count back to zero.- Parameters:
 identifier- the identifier for which the error count should be reset
 
- 
increaseErrorCount
void increaseErrorCount(java.lang.String identifier)
Increases the error count by one.- Parameters:
 identifier- the identifier for which the error count should be increased
 
 - 
 
 -