| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void | close()
Overrides com. Implements java. Releases this |
| public LoadBalancedConnectionProxy | |
| public boolean | isWrapperFor(Class<?>
a Class defining an interface. iface)Overrides com. Implements java. Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does. |
| public void | ping()
Overrides com. Implements com. Detect if the connection is still good by sending a ping command to the server. |
| public void | |
| public void | |
| public void | |
| public <T> T | unwrap(Class<T>
A Class defining an interface that the result must implement. iface)Overrides com. Implements java. Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy. |
| LoadBalancedMySQLConnection | back to summary |
|---|---|
| public LoadBalancedMySQLConnection(LoadBalancedConnectionProxy proxy) | |
| addHost | back to summary |
|---|---|
| public boolean addHost(String host) throws SQLException Implements com.
| |
| close | back to summary |
|---|---|
| public void close() throws SQLException Overrides com. Implements java. Doc from java. Releases this
Calling the method
It is strongly recommended that an application explicitly
commits or rolls back an active transaction prior to calling the
| |
| getThisAsProxy | back to summary |
|---|---|
| public LoadBalancedConnectionProxy getThisAsProxy() Overrides com.
| |
| isWrapperFor | back to summary |
|---|---|
| public boolean isWrapperFor(Class<?> iface) throws SQLException Overrides com. Implements java. Doc from java. Returns true if this either implements the interface argument or is directly or indirectly a wrapper
for an object that does. Returns false otherwise. If this implements the interface then return true,
else if this is a wrapper then return the result of recursively calling
| |
| ping | back to summary |
|---|---|
| public void ping() throws SQLException Overrides com. Implements com. Doc from com. Detect if the connection is still good by sending a ping command to the server.
| |
| ping | back to summary |
|---|---|
| public void ping(boolean allConnections) throws SQLException Implements com.
| |
| removeHost | back to summary |
|---|---|
| public void removeHost(String host) throws SQLException Implements com.
| |
| removeHostWhenNotInUse | back to summary |
|---|---|
| public void removeHostWhenNotInUse(String host) throws SQLException Implements com.
| |
| unwrap | back to summary |
|---|---|
| public <T> T unwrap(Class<T> iface) throws SQLException Overrides com. Implements java. Doc from java. Returns an object that implements the given interface to allow access to
non-standard methods, or standard methods not exposed by the proxy.
If the receiver implements the interface then the result is the receiver
or a proxy for the receiver. If the receiver is a wrapper
and the wrapped object implements the interface then the result is the
wrapped object or a proxy for the wrapped object. Otherwise return the
the result of calling
| |