
Public Member Functions | |
| IMConnectionTester (IInstantMessenger watcher, IInstantMessenger watched, long pingPongFrequencyMillis, long timeoutMillis) | |
| void | messageReceived (IInstantMessenger instantMessenger, String buddyName, String message) |
| void | run () |
| void | stop () |
Protected Member Functions | |
| void | testConnection () throws IMConnectionException |
Private Attributes | |
| int | _failureCount |
| long | _lastConnectionAttempt |
| boolean | _pinged |
| long | _pingPongFrequencyMillis |
| Object | _pingPongMessageLock |
| boolean | _ponged |
| boolean | _running |
| long | _timeoutMillis |
| IInstantMessenger | _watched |
| IInstantMessenger | _watcher |
Static Private Attributes | |
| static final String | PING_MESSAGE = "~Ping~" |
| static final String | PONG_MESSAGE = "~Pong~" |
| IMConnectionTester | ( | IInstantMessenger | watcher, | |
| IInstantMessenger | watched, | |||
| long | pingPongFrequencyMillis, | |||
| long | timeoutMillis | |||
| ) |
| void messageReceived | ( | IInstantMessenger | instantMessenger, | |
| String | buddyName, | |||
| String | message | |||
| ) |
Implements IMessageListener.
| void run | ( | ) |
| void stop | ( | ) |
| void testConnection | ( | ) | throws IMConnectionException [protected] |
int _failureCount [private] |
long _lastConnectionAttempt [private] |
boolean _pinged [private] |
long _pingPongFrequencyMillis [private] |
Object _pingPongMessageLock [private] |
boolean _ponged [private] |
boolean _running [private] |
long _timeoutMillis [private] |
IInstantMessenger _watched [private] |
IInstantMessenger _watcher [private] |
final String PING_MESSAGE = "~Ping~" [static, private] |
final String PONG_MESSAGE = "~Pong~" [static, private] |
1.5.8