|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.zerjio.JIRC.SimplePINGListener
A basic PINGListener
that replies with a PONG message every time
it receives a PINGMessage
.
Constructor Summary | |
SimplePINGListener(IRCClient client)
Constructs a SimplePINGListener . |
|
SimplePINGListener(IRCClient client,
boolean removePINGMessages)
Constructs a SimplePINGListener . |
Method Summary | |
void |
PINGReceived(PINGMessage msg)
Handles a PINGMessage by sending a PONG message with the same
parameters as the PINGMessage has. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimplePINGListener(IRCClient client, boolean removePINGMessages)
SimplePINGListener
.
client
- The IRCClient
that will be used to send
the PONG replies.removePINGMessages
- Marks if the PINGMessage
s should
be removed (not processed by more listeners.public SimplePINGListener(IRCClient client)
SimplePINGListener
. The PINGMessage
s
will not be removed (and then can be processed by other listeners).
client
- The IRCClient
that will be used to send
the PONG replies.Method Detail |
public void PINGReceived(PINGMessage msg)
PINGMessage
by sending a PONG message with the same
parameters as the PINGMessage
has. It marks the message as used
and sets it to beDiscarded if neceessary.
PINGReceived
in interface PINGListener
msg
- The PINGMessage
that has been received.markAsUsed
,
mustBeDiscarded
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |