提交 332cb9a8 authored 作者: Thomas Mueller's avatar Thomas Mueller

After re-connecting to a database, the database event listener (if set) is informed about it.

上级 1336b39d
...@@ -38,6 +38,12 @@ public interface DatabaseEventListener extends EventListener { ...@@ -38,6 +38,12 @@ public interface DatabaseEventListener extends EventListener {
*/ */
int STATE_BACKUP_FILE = 3; int STATE_BACKUP_FILE = 3;
/**
* This state is used after re-connecting to a database (if auto-reconnect
* is enabled).
*/
int STATE_RECONNECTED = 4;
/** /**
* This method is called just after creating the object. * This method is called just after creating the object.
* This is done when opening the database if the listener is specified * This is done when opening the database if the listener is specified
...@@ -67,7 +73,7 @@ public interface DatabaseEventListener extends EventListener { ...@@ -67,7 +73,7 @@ public interface DatabaseEventListener extends EventListener {
void diskSpaceIsLow(long stillAvailable) throws SQLException; void diskSpaceIsLow(long stillAvailable) throws SQLException;
/** /**
* This method is called if an exception occurred during database recovery * This method is called if an exception occurred.
* *
* @param e the exception * @param e the exception
* @param sql the SQL statement * @param sql the SQL statement
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论