public class ReaderFailoverResult extends Object
Constructor and Description |
---|
ReaderFailoverResult(@Nullable BaseConnection newConnection,
@Nullable HostInfo newHost,
boolean isConnected)
ConnectionAttemptResult constructor.
|
Modifier and Type | Method and Description |
---|---|
@Nullable BaseConnection |
getConnection()
Get new connection to a host.
|
@Nullable HostInfo |
getHost()
Get the
HostInfo associated with the new connection |
boolean |
isConnected()
Checks if process result is successful and new connection to host is established.
|
public ReaderFailoverResult(@Nullable BaseConnection newConnection, @Nullable HostInfo newHost, boolean isConnected)
newConnection
- The new connection created by the reader failover processnewHost
- The HostInfo
associated with the new connectionisConnected
- Indicates whether reader failover was successfulpublic @Nullable BaseConnection getConnection()
BaseConnection
New connection to a host. Returns null if no connection is
established.public @Nullable HostInfo getHost()
HostInfo
associated with the new connectionHostInfo
associated with the new connection, or null if no connection
was established.public boolean isConnected()
Copyright © 1997-2021 PostgreSQL Global Development Group. All Rights Reserved.