Package com.zaxxer.hikari
Interface SQLExceptionOverride
-
public interface SQLExceptionOverrideUsers can implement this interface to override the default SQLException handling of HikariCP. By the time an instance of this interface is invoked HikariCP has already made a determination to evict the Connection from the pool. If theadjudicate(SQLException)method returnsSQLExceptionOverride.Override.CONTINUE_EVICTthe eviction will occur, but if the method returnsSQLExceptionOverride.Override.DO_NOT_EVICTthe eviction will be elided.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSQLExceptionOverride.Override
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default SQLExceptionOverride.Overrideadjudicate(java.sql.SQLException sqlException)If this method returnsSQLExceptionOverride.Override.CONTINUE_EVICTthen Connection eviction will occur, but if it returnsSQLExceptionOverride.Override.DO_NOT_EVICTthe eviction will be elided.
-
-
-
Method Detail
-
adjudicate
default SQLExceptionOverride.Override adjudicate(java.sql.SQLException sqlException)
If this method returnsSQLExceptionOverride.Override.CONTINUE_EVICTthen Connection eviction will occur, but if it returnsSQLExceptionOverride.Override.DO_NOT_EVICTthe eviction will be elided.- Parameters:
sqlException- the #SQLException to adjudicate- Returns:
- either one of
SQLExceptionOverride.Override.CONTINUE_EVICTorSQLExceptionOverride.Override.DO_NOT_EVICT
-
-