Class GlobalStateInfo
java.lang.Object
org.mariadb.jdbc.internal.util.pool.GlobalStateInfo
-
Constructor Summary
ConstructorsConstructorDescriptionDefault value.GlobalStateInfo(long maxAllowedPacket, int waitTimeout, boolean autocommit, int autoIncrementIncrement, String timeZone, String systemTimeZone, int defaultTransactionIsolation) Storing global server state to avoid asking server each new connection. -
Method Summary
Modifier and TypeMethodDescriptionintintlongintboolean
-
Constructor Details
-
GlobalStateInfo
public GlobalStateInfo()Default value. ! To be used for Connection that will only Kill query/connection ! -
GlobalStateInfo
public GlobalStateInfo(long maxAllowedPacket, int waitTimeout, boolean autocommit, int autoIncrementIncrement, String timeZone, String systemTimeZone, int defaultTransactionIsolation) Storing global server state to avoid asking server each new connection. Using this Object meaning having set the option "staticGlobal". Application must not change any of the following options.- Parameters:
maxAllowedPacket- max_allowed_packet global variable valuewaitTimeout- wait_timeout global variable valueautocommit- auto_commit global variable valueautoIncrementIncrement- auto_increment_increment global variable valuetimeZone- time_zone global variable valuesystemTimeZone- System global variable valuedefaultTransactionIsolation- tx_isolation variable value
-
-
Method Details
-
getMaxAllowedPacket
public long getMaxAllowedPacket() -
getWaitTimeout
public int getWaitTimeout() -
isAutocommit
public boolean isAutocommit() -
getAutoIncrementIncrement
public int getAutoIncrementIncrement() -
getTimeZone
-
getSystemTimeZone
-
getDefaultTransactionIsolation
public int getDefaultTransactionIsolation()
-