public class ReaderClusterConnectionPlugin extends java.lang.Object implements IConnectionPlugin
| Modifier and Type | Field and Description |
|---|---|
protected IConnectionProvider |
connectionProvider |
| Constructor and Description |
|---|
ReaderClusterConnectionPlugin(ICurrentConnectionProvider currentConnectionProvider,
IConnectionPlugin nextPlugin) |
ReaderClusterConnectionPlugin(ICurrentConnectionProvider currentConnectionProvider,
IConnectionPlugin nextPlugin,
IConnectionProvider connectionProvider) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
execute(java.lang.Class<?> methodInvokeOn,
java.lang.String methodName,
java.util.concurrent.Callable<?> executeSqlFunc,
java.lang.Object[] args) |
void |
openInitialConnection(ConnectionUrl connectionUrl) |
void |
releaseResources() |
void |
transactionBegun()
Called when the driver has been told by the server that a transaction is now in progress (when
one has not been currently in progress).
|
void |
transactionCompleted()
Called when the driver has been told by the server that a transaction has completed, and no
transaction is currently in progress.
|
protected IConnectionProvider connectionProvider
public ReaderClusterConnectionPlugin(ICurrentConnectionProvider currentConnectionProvider, IConnectionPlugin nextPlugin)
public ReaderClusterConnectionPlugin(ICurrentConnectionProvider currentConnectionProvider, IConnectionPlugin nextPlugin, IConnectionProvider connectionProvider)
public java.lang.Object execute(java.lang.Class<?> methodInvokeOn,
java.lang.String methodName,
java.util.concurrent.Callable<?> executeSqlFunc,
java.lang.Object[] args)
throws java.lang.Exception
execute in interface IConnectionPluginjava.lang.Exceptionpublic void openInitialConnection(ConnectionUrl connectionUrl) throws java.sql.SQLException
openInitialConnection in interface IConnectionPluginjava.sql.SQLExceptionpublic void releaseResources()
releaseResources in interface IConnectionPluginpublic void transactionBegun()
ITransactionContextHandlertransactionBegun in interface ITransactionContextHandlerpublic void transactionCompleted()
ITransactionContextHandlertransactionCompleted in interface ITransactionContextHandler