Interface AgroalConnectionPoolConfiguration.ExceptionSorter
- All Known Implementing Classes:
DB2ExceptionSorter, FirebirdSQLExceptionSorter, MSSQLExceptionSorter, MySQLExceptionSorter, OracleExceptionSorter, PostgreSQLExceptionSorter, SybaseExceptionSorter
- Enclosing interface:
AgroalConnectionPoolConfiguration
public static interface AgroalConnectionPoolConfiguration.ExceptionSorter
Interface for custom exception sorter strategies. Determines if a connection is still usable after an exception occurs.
- Author:
- Luis Barreiro
-
Method Summary
Modifier and TypeMethodDescriptionDefault exception sorter.Never treat an exception as fatal.Treats every exception as fatal.booleanisFatal(SQLException se)
-
Method Details
-
defaultExceptionSorter
Default exception sorter. Does not treat any exception as fatal. -
emptyExceptionSorter
Never treat an exception as fatal. -
fatalExceptionSorter
Treats every exception as fatal. -
isFatal
- Returns:
- true if an exception is considered fatal and the connection is not able for further use, false otherwise
-