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 void
checkClosed()
void
cleanup(java.lang.Throwable whyCleanedUp)
Destroys this connection and any underlying resources.void
createNewIO(boolean isForReconnect)
Creates an IO channel to the server.java.lang.Object
getConnectionMutex()
ExceptionInterceptor
getExceptionInterceptor()
long
getId()
java.util.Properties
getProperties()
Returns the parsed and passed in properties for this connection.PropertySet
getPropertySet()
Session
getSession()
java.lang.String
getURL()
java.lang.String
getUser()
void
normalClose()
-
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
-