Package com.mysql.cj.jdbc.ha
Interface LoadBalancedConnection
- All Superinterfaces:
java.lang.AutoCloseable,java.sql.Connection,JdbcConnection,MysqlConnection,TransactionEventHandler,java.sql.Wrapper
- All Known Implementing Classes:
LoadBalancedMySQLConnection
public interface LoadBalancedConnection extends JdbcConnection
-
Field Summary
-
Method Summary
Modifier and Type Method Description booleanaddHost(java.lang.String host)voidping(boolean allConnections)voidremoveHost(java.lang.String host)voidremoveHostWhenNotInUse(java.lang.String host)Methods inherited from interface java.sql.Connection
abort, beginRequest, clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, endRequest, 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, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid, setTransactionIsolation, setTypeMapMethods inherited from interface com.mysql.cj.jdbc.JdbcConnection
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, unSafeQueryInterceptorsMethods inherited from interface com.mysql.cj.MysqlConnection
checkClosed, cleanup, createNewIO, getConnectionMutex, getExceptionInterceptor, getId, getProperties, getSession, getURL, getUser, normalCloseMethods inherited from interface com.mysql.cj.TransactionEventHandler
transactionBegun, transactionCompleted
-
Method Details
-
addHost
boolean addHost(java.lang.String host) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
removeHost
void removeHost(java.lang.String host) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
removeHostWhenNotInUse
void removeHostWhenNotInUse(java.lang.String host) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
ping
void ping(boolean allConnections) throws java.sql.SQLException- Throws:
java.sql.SQLException
-