public interface ReplicationConnection extends JdbcConnection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE| Modifier and Type | Method and Description |
|---|---|
void |
addReplicaHost(String host) |
long |
getConnectionGroupId() |
JdbcConnection |
getCurrentConnection() |
JdbcConnection |
getReplicaConnection() |
JdbcConnection |
getSourceConnection() |
boolean |
isHostReplica(String host) |
boolean |
isHostSource(String host) |
void |
promoteReplicaToSource(String host) |
void |
removeReplica(String host) |
void |
removeReplica(String host,
boolean closeGently) |
void |
removeSourceHost(String host) |
void |
removeSourceHost(String host,
boolean waitUntilNotInUse) |
abortInternal, changeUser, clientPrepareStatement, clientPrepareStatement, clientPrepareStatement, clientPrepareStatement, clientPrepareStatement, clientPrepareStatement, decachePreparedStatement, getActiveMySQLConnection, getActiveStatementCount, getAutoIncrementIncrement, getCachedMetaData, getCharacterSetMetadata, getClientInfoProviderImpl, getDatabase, getHost, getHostPortPair, getIdleFor, getLock, getMetadataSafeStatement, getMultiHostParentProxy, getMultiHostSafeProxy, getPropertySet, getQueryInterceptorsInstances, getServerVersion, getSessionMaxRows, getStatementComment, hasSameProperties, initializeResultsMetadataFromCache, initializeSafeQueryInterceptors, isInGlobalTx, isProxySet, isReadOnly, isSameResource, isServerLocal, isSourceConnection, lowerCaseTableNames, ping, pingInternal, realClose, recachePreparedStatement, registerStatement, resetServerState, serverPrepareStatement, serverPrepareStatement, serverPrepareStatement, serverPrepareStatement, serverPrepareStatement, serverPrepareStatement, setDatabase, setFailedOver, setInGlobalTx, setProxy, setReadOnlyInternal, setSessionMaxRows, setStatementComment, shutdownServer, storesLowerCaseTableName, throwConnectionClosedException, unregisterStatement, unSafeQueryInterceptorsabort, clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMapisWrapperFor, unwrapcheckClosed, cleanup, createNewIO, getConnectionLock, getExceptionInterceptor, getId, getProperties, getServerSessionStateController, getSession, getURL, getUser, normalClosetransactionBegun, transactionCompletedlong getConnectionGroupId()
JdbcConnection getCurrentConnection()
JdbcConnection getSourceConnection()
void promoteReplicaToSource(String host) throws SQLException
SQLExceptionvoid removeSourceHost(String host) throws SQLException
SQLExceptionvoid removeSourceHost(String host, boolean waitUntilNotInUse) throws SQLException
SQLExceptionboolean isHostSource(String host)
JdbcConnection getReplicaConnection()
void addReplicaHost(String host) throws SQLException
SQLExceptionvoid removeReplica(String host) throws SQLException
SQLExceptionvoid removeReplica(String host, boolean closeGently) throws SQLException
SQLExceptionboolean isHostReplica(String host)