|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--org.jabber.jabberbeans.util.KeepAlive
Inner Class Summary | |
class |
KeepAlive.KeepAliveConnectionListener
|
class |
KeepAlive.KeepAlivePacket
KeepAlivePacket is rather simple - instead of being XML, it is just a space. |
class |
KeepAlive.KeepAlivePacketListener
|
Field Summary | |
private boolean |
bConnected
boolean indicating that the connection is down to
the thread, so that it does not keep sending data out to the
ether. |
private boolean |
bRunning
boolean indicating that the thread is still in
a running state (used to shut it down) |
private ConnectionBean |
cb
The ConnectionBean which we are keeping alive. |
private int |
timeout
timeout in milliseconds, after which a keepalive packet (space) will be sent. |
Fields inherited from class java.lang.Thread |
contextClassLoader,
daemon,
eetop,
group,
inheritedAccessControlContext,
MAX_PRIORITY,
MIN_PRIORITY,
name,
NORM_PRIORITY,
priority,
single_step,
stillborn,
stopThreadPermission,
target,
threadInitNumber,
threadQ,
values |
Constructor Summary | |
KeepAlive(ConnectionBean cb,
int timeout)
Creates a new KeepAlive instance. |
Method Summary | |
void |
run()
|
void |
shutdown()
|
Methods inherited from class java.lang.Thread |
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
private ConnectionBean cb
ConnectionBean
which we are keeping alive.private int timeout
private boolean bRunning
boolean
indicating that the thread is still in
a running state (used to shut it down)private boolean bConnected
boolean
indicating that the connection is down to
the thread, so that it does not keep sending data out to the
ether.Constructor Detail |
public KeepAlive(ConnectionBean cb, int timeout)
KeepAlive
instance.cb
- a ConnectionBean
valuetimeout
- timer in milliseconds after last traffic to send
keepalive.Method Detail |
public void shutdown()
public void run()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |