mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02:00
Added reconnection support. SMACK-172
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@5367 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
96e4201f61
commit
3af86fd462
22 changed files with 501 additions and 194 deletions
|
@ -108,6 +108,26 @@ public class ConsoleDebugger implements SmackDebugger {
|
|||
")");
|
||||
e.printStackTrace();
|
||||
}
|
||||
public void reconnectionFailed(Exception e) {
|
||||
System.out.println(
|
||||
dateFormatter.format(new Date()) +
|
||||
" Reconnection failed due to an exception (" +
|
||||
connection.hashCode() +
|
||||
")");
|
||||
e.printStackTrace();
|
||||
}
|
||||
public void reconectionSuccessful() {
|
||||
System.out.println(
|
||||
dateFormatter.format(new Date()) + " Connection reconnected (" +
|
||||
connection.hashCode() +
|
||||
")");
|
||||
}
|
||||
public void reconnectingIn(int seconds) {
|
||||
System.out.println(
|
||||
dateFormatter.format(new Date()) + " Connection (" +
|
||||
connection.hashCode() +
|
||||
") will reconnect in " + seconds);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue