Package oracle.nosql.driver
Class RequestTimeoutException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- oracle.nosql.driver.NoSQLException
-
- oracle.nosql.driver.RequestTimeoutException
-
- All Implemented Interfaces:
java.io.Serializable
public class RequestTimeoutException extends NoSQLException
Thrown when a request cannot be processed because the configured timeout interval is exceeded. If a retry handler is configured it is possible that the request has been retried a number of times before the timeout occurs.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RequestTimeoutException(int timeoutMs, java.lang.String msg)
Internal use only.RequestTimeoutException(int timeoutMs, java.lang.String msg, java.lang.Throwable cause)
Internal use only.RequestTimeoutException(java.lang.String msg)
Internal use only.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
int
getTimeoutMs()
Returns the timeout that was in effect for the operation.-
Methods inherited from class oracle.nosql.driver.NoSQLException
okToRetry
-
-
-
-
Constructor Detail
-
RequestTimeoutException
public RequestTimeoutException(java.lang.String msg)
Internal use only.- Parameters:
msg
- the message string for the timeout
-
RequestTimeoutException
public RequestTimeoutException(int timeoutMs, java.lang.String msg)
Internal use only.- Parameters:
timeoutMs
- the timeout that was in effect, in millisecondsmsg
- the message string for the timeout
-
RequestTimeoutException
public RequestTimeoutException(int timeoutMs, java.lang.String msg, java.lang.Throwable cause)
Internal use only.- Parameters:
timeoutMs
- the timeout that was in effect, in millisecondsmsg
- the message string for the timeoutcause
- the cause of the exception
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
getTimeoutMs
public int getTimeoutMs()
Returns the timeout that was in effect for the operation.- Returns:
- the timeout that was in use for the operation that timed out, in milliseconds, if the timeout is not known it will be 0.
-
-