|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.TimerTask
mysql.StaticSql.ReconnectTask
private static final class StaticSql.ReconnectTask
A reconnect task first deletes any pending statements and then tries to reopen it in its run method.
| Field Summary | |
|---|---|
private int |
count
Retry-counter for debugging. |
private String |
password
The password for the user. |
private String |
user
The user name for the db connection. |
| Constructor Summary | |
|---|---|
private |
StaticSql.ReconnectTask(String whom,
String how)
Tries to close any pending statement on the old user entry and re-opens the connection in its run method. |
| Method Summary | |
|---|---|
void |
run()
Tries to re-open the connection for the user with the given password If successful, we cancel ourself. |
| Methods inherited from class java.util.TimerTask |
|---|
cancel, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private String user
private String password
private int count
| Constructor Detail |
|---|
private StaticSql.ReconnectTask(String whom,
String how)
| Method Detail |
|---|
public void run()
run in interface Runnablerun in class TimerTask
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||