Class RetryStats
java.lang.Object
oracle.nosql.driver.ops.RetryStats
A class that maintains stats on retries during a request.
This object tracks statistics about retries performed during
requests. It can be accessed from within retry handlers
(see
RetryHandler) or after a request is finished by calling
Request.getRetryStats().-
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns the total time delayed (slept) between retry events.Returns the map of exceptions that have been retriedintgetNumExceptions(Class<? extends Throwable> e) Returns the number of exceptions of a particular class.intReturns the number of retry events.inthashCode()toString()
-
Method Details
-
getNumExceptions
-
getDelayMs
public int getDelayMs()Returns the total time delayed (slept) between retry events.- Returns:
- time delayed during retries, in milliseconds. This is only the time spent locally in sleep() between retry events.
-
getRetries
public int getRetries()Returns the number of retry events.- Returns:
- number of retry events
-
getExceptionMap
-
equals
-
hashCode
-
toString
-