public class ReaderFailoverResult
extends java.lang.Object
| Constructor and Description |
|---|
ReaderFailoverResult(JdbcConnection newConnection,
int newConnectionIndex,
boolean isConnected)
ConnectionAttemptResult constructor.
|
| Modifier and Type | Method and Description |
|---|---|
JdbcConnection |
getConnection()
Get new connection to a host.
|
int |
getConnectionIndex()
Get index of newly connected host.
|
boolean |
isConnected()
Checks if process result is successful and new connection to host is established.
|
public ReaderFailoverResult(JdbcConnection newConnection, int newConnectionIndex, boolean isConnected)
public JdbcConnection getConnection()
JdbcConnection New connection to a host. Returns null if no connection is
established.public int getConnectionIndex()
public boolean isConnected()