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) |
default void |
addSlaveHost(String host)
Deprecated.
|
long |
getConnectionGroupId() |
JdbcConnection |
getCurrentConnection() |
default JdbcConnection |
getMasterConnection()
Deprecated.
|
JdbcConnection |
getReplicaConnection() |
default JdbcConnection |
getSlavesConnection()
Deprecated.
|
JdbcConnection |
getSourceConnection() |
default boolean |
isHostMaster(String host)
Deprecated.
|
boolean |
isHostReplica(String host) |
default boolean |
isHostSlave(String host)
Deprecated.
|
boolean |
isHostSource(String host) |
void |
promoteReplicaToSource(String host) |
default void |
promoteSlaveToMaster(String host)
Deprecated.
|
default void |
removeMasterHost(String host)
Deprecated.
|
default void |
removeMasterHost(String host,
boolean waitUntilNotInUse)
Deprecated.
|
void |
removeReplica(String host) |
void |
removeReplica(String host,
boolean closeGently) |
default void |
removeSlave(String host)
Deprecated.
|
default void |
removeSlave(String host,
boolean closeGently)
Deprecated.
|
void |
removeSourceHost(String host) |
void |
removeSourceHost(String host,
boolean waitUntilNotInUse) |
abortInternal, changeUser, clearHasTriedMaster, clientPrepareStatement, clientPrepareStatement, clientPrepareStatement, clientPrepareStatement, clientPrepareStatement, clientPrepareStatement, decachePreparedStatement, getActiveMySQLConnection, getActiveStatementCount, getAutoIncrementIncrement, getCachedMetaData, getCharacterSetMetadata, getClientInfoProviderImpl, getDatabase, getHost, getHostPortPair, getIdleFor, getMetadataSafeStatement, getMultiHostParentProxy, getMultiHostSafeProxy, getPropertySet, getQueryInterceptorsInstances, getServerVersion, getSessionMaxRows, getStatementComment, hasSameProperties, hasTriedMaster, initializeResultsMetadataFromCache, initializeSafeQueryInterceptors, isInGlobalTx, isMasterConnection, 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, getConnectionMutex, getExceptionInterceptor, getId, getProperties, getServerSessionStateController, getSession, getURL, getUser, normalClosetransactionBegun, transactionCompletedlong getConnectionGroupId()
JdbcConnection getCurrentConnection()
JdbcConnection getSourceConnection()
@Deprecated default JdbcConnection getMasterConnection()
getSourceConnection() instead.JdbcConnectionvoid promoteReplicaToSource(String host) throws SQLException
SQLException@Deprecated default void promoteSlaveToMaster(String host) throws SQLException
promoteReplicaToSource(String) instead.host - host nameSQLException - in case of failurevoid removeSourceHost(String host) throws SQLException
SQLException@Deprecated default void removeMasterHost(String host) throws SQLException
removeSourceHost(String) instead.host - host nameSQLException - in case of failurevoid removeSourceHost(String host, boolean waitUntilNotInUse) throws SQLException
SQLException@Deprecated default void removeMasterHost(String host, boolean waitUntilNotInUse) throws SQLException
removeSourceHost(String, boolean) instead.host - host namewaitUntilNotInUse - remove immediately or wait for it's releaseSQLException - in case of failureboolean isHostSource(String host)
@Deprecated default boolean isHostMaster(String host)
isHostSource(String) instead.host - host nameJdbcConnection getReplicaConnection()
@Deprecated default JdbcConnection getSlavesConnection()
getReplicaConnection() instead.JdbcConnectionvoid addReplicaHost(String host) throws SQLException
SQLException@Deprecated default void addSlaveHost(String host) throws SQLException
addReplicaHost(String) instead.host - host nameSQLException - in case of failurevoid removeReplica(String host) throws SQLException
SQLException@Deprecated default void removeSlave(String host) throws SQLException
removeReplica(String) instead.host - host nameSQLException - in case of failurevoid removeReplica(String host, boolean closeGently) throws SQLException
SQLException@Deprecated default void removeSlave(String host, boolean closeGently) throws SQLException
removeReplica(String, boolean) instead.host - host namecloseGently - modeSQLException - in case of failureboolean isHostReplica(String host)
@Deprecated default boolean isHostSlave(String host)
isHostReplica(String) instead.host - host name