|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.TimerTask
org.walluck.oscar.KeepAliveTask
The keep-alive task sends a keep alive packet once every minute.
| Field Summary | |
static int |
TIME
How often to send packets. |
| Constructor Summary | |
KeepAliveTask(AIMConnection conn)
Creates a new keep alive task. |
|
| Method Summary | |
void |
run()
The run method for the keep alive task. |
void |
sendKeepAlive(AIMConnection conn)
Send a keep alive packet (doesn't use the queue). |
| 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 |
public static final int TIME
| Constructor Detail |
public KeepAliveTask(AIMConnection conn)
conn - the bos connection for this session| Method Detail |
public void sendKeepAlive(AIMConnection conn)
throws java.io.IOException
conn - the bos connection for this session
java.io.IOException - if an error occurspublic void run()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||