| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public boolean | shouldExceptionTriggerFailover(Throwable
exception ex)Overrides com. Implements com. Invoked to determine whether or a given SQLException should trigger a failover in a load-balanced deployment. |
| NdbLoadBalanceExceptionChecker | back to summary |
|---|---|
| public NdbLoadBalanceExceptionChecker() | |
| checkNdbException | back to summary |
|---|---|
| private boolean checkNdbException(Throwable ex) | |
| shouldExceptionTriggerFailover | back to summary |
|---|---|
| public boolean shouldExceptionTriggerFailover(Throwable ex) Overrides com. Implements com. Doc from com. Invoked to determine whether or a given SQLException should trigger a failover in a load-balanced deployment. The driver will not pass in a Connection instance when calling init(), but it will pass in the Properties, otherwise it acts like a normal Extension. One instance of a handler *per* JDBC connection instance will be created. If you need singleton-like behavior, you're on your own to provide it. | |