Class QueryExceptionHandler

    • Constructor Detail

      • QueryExceptionHandler

        public QueryExceptionHandler()
    • Method Detail

      • isTimeoutException

        public boolean isTimeoutException​(SQLException exception)
        Indicates if a given exception is a timeout. Logic for this may be driver-specific, so drivers that support query timeouts may have to override this method. A timeout exception can also be considered retryable.
        Parameters:
        exception - The exception to check.
        Returns:
        true if the exception is a timeout, false otherwise.
      • isRetryableException

        public boolean isRetryableException​(SQLException exception)
        Checks if an Exception occurred due to serialization failures in concurrent transactions and may be retried on the client-side.
        Parameters:
        exception - The exception to check.
        Returns:
        true if the exception is retryable, false otherwise.