public class KeepAliveTask extends TimerTask
Modifier and Type | Field and Description |
---|---|
static int |
TIME
How often to send packets.
|
Constructor and Description |
---|
KeepAliveTask(AIMConnection conn)
Creates a new keep alive task.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
The run method for the keep alive task.
|
void |
sendKeepAlive(AIMConnection conn)
Send a keep alive packet (doesn't use the queue).
|
cancel, scheduledExecutionTime
public static final int TIME
public KeepAliveTask(AIMConnection conn)
conn
- the bos connection for this sessionpublic void sendKeepAlive(AIMConnection conn) throws IOException
conn
- the bos connection for this sessionIOException
- if an error occurs