Package com.mysql.cj
Interface MysqlConnection
- All Known Subinterfaces:
JdbcConnection,LoadBalancedConnection,ReplicationConnection
- All Known Implementing Classes:
ConnectionImpl,ConnectionWrapper,LoadBalancedMySQLConnection,MultiHostMySQLConnection,ReplicationMySQLConnection
public interface MysqlConnection
-
Method Summary
Modifier and Type Method Description voidcheckClosed()voidcleanup(java.lang.Throwable whyCleanedUp)Destroys this connection and any underlying resources.voidcreateNewIO(boolean isForReconnect)Creates an IO channel to the server.java.lang.ObjectgetConnectionMutex()ExceptionInterceptorgetExceptionInterceptor()longgetId()java.util.PropertiesgetProperties()Returns the parsed and passed in properties for this connection.PropertySetgetPropertySet()SessiongetSession()java.lang.StringgetURL()java.lang.StringgetUser()voidnormalClose()
-
Method Details
-
getPropertySet
PropertySet getPropertySet() -
createNewIO
void createNewIO(boolean isForReconnect)Creates an IO channel to the server.- Parameters:
isForReconnect- is this request for a re-connect
-
getId
long getId() -
getProperties
java.util.Properties getProperties()Returns the parsed and passed in properties for this connection.- Returns:
Properties
-
getConnectionMutex
java.lang.Object getConnectionMutex() -
getSession
Session getSession() -
getURL
java.lang.String getURL() -
getUser
java.lang.String getUser() -
getExceptionInterceptor
ExceptionInterceptor getExceptionInterceptor() -
checkClosed
void checkClosed() -
normalClose
void normalClose() -
cleanup
void cleanup(java.lang.Throwable whyCleanedUp)Destroys this connection and any underlying resources.- Parameters:
whyCleanedUp- exception caused the connection clean up
-