程序包 com.mysql.cj
接口 MysqlConnection
-
- 所有已知实现类:
ConnectionImpl,ConnectionWrapper,LoadBalancedMySQLConnection,MultiHostMySQLConnection,ReplicationMySQLConnection
public interface MysqlConnection
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidcheckClosed()voidcleanup(Throwable whyCleanedUp)Destroys this connection and any underlying resources.voidcreateNewIO(boolean isForReconnect)Creates an IO channel to the server.ObjectgetConnectionMutex()ExceptionInterceptorgetExceptionInterceptor()longgetId()PropertiesgetProperties()Returns the parsed and passed in properties for this connection.PropertySetgetPropertySet()ServerSessionStateControllergetServerSessionStateController()SessiongetSession()StringgetURL()StringgetUser()voidnormalClose()
-
-
-
方法详细资料
-
getPropertySet
PropertySet getPropertySet()
-
createNewIO
void createNewIO(boolean isForReconnect)
Creates an IO channel to the server.- 参数:
isForReconnect- is this request for a re-connect
-
getId
long getId()
-
getProperties
Properties getProperties()
Returns the parsed and passed in properties for this connection.- 返回:
Properties
-
getConnectionMutex
Object getConnectionMutex()
-
getSession
Session getSession()
-
getURL
String getURL()
-
getUser
String getUser()
-
getExceptionInterceptor
ExceptionInterceptor getExceptionInterceptor()
-
checkClosed
void checkClosed()
-
normalClose
void normalClose()
-
cleanup
void cleanup(Throwable whyCleanedUp)
Destroys this connection and any underlying resources.- 参数:
whyCleanedUp- exception caused the connection clean up
-
getServerSessionStateController
ServerSessionStateController getServerSessionStateController()
-
-