public class ReaderFailoverResult
extends java.lang.Object
| Constructor and Description |
|---|
ReaderFailoverResult(java.sql.Connection newConnection,
HostSpec newHost,
boolean isConnected) |
ReaderFailoverResult(java.sql.Connection newConnection,
HostSpec newHost,
boolean isConnected,
java.sql.SQLException exception) |
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
getConnection()
Get new connection to a host.
|
java.sql.SQLException |
getException()
Get the exception raised during failover.
|
HostSpec |
getHost()
Get newly connected host spec.
|
boolean |
isConnected()
Checks if process result is successful and new connection to host is established.
|
public ReaderFailoverResult(java.sql.Connection newConnection,
HostSpec newHost,
boolean isConnected)
public ReaderFailoverResult(java.sql.Connection newConnection,
HostSpec newHost,
boolean isConnected,
java.sql.SQLException exception)
public java.sql.Connection getConnection()
Connection New connection to a host. Returns null if no connection is established.public HostSpec getHost()
public boolean isConnected()
public java.sql.SQLException getException()
SQLException.