org.jabber.jabberbeans.util
Class KeepAlive.KeepAlivePacketListener

java.lang.Object
  |
  +--org.jabber.jabberbeans.util.KeepAlive.KeepAlivePacketListener
All Implemented Interfaces:
PacketListener
Enclosing class:
KeepAlive

public class KeepAlive.KeepAlivePacketListener
extends java.lang.Object
implements PacketListener


Constructor Summary
KeepAlive.KeepAlivePacketListener()
           
 
Method Summary
 void receivedPacket(PacketEvent pe)
          called when a packet is received and processed.
 void sendFailed(PacketEvent pe)
          called if a packet is not successfully sent (for instance, if the connection dies while the packet is queued, or a packet is sent while disconnected).
 void sentPacket(PacketEvent pe)
          called whenever a local client sends a packet, after the sending is successful
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeepAlive.KeepAlivePacketListener

public KeepAlive.KeepAlivePacketListener()
Method Detail

sentPacket

public void sentPacket(PacketEvent pe)
Description copied from interface: PacketListener
called whenever a local client sends a packet, after the sending is successful

Specified by:
sentPacket in interface PacketListener
Parameters:
pe - PacketEvent that has just been sent

receivedPacket

public void receivedPacket(PacketEvent pe)
Description copied from interface: PacketListener
called when a packet is received and processed.

Specified by:
receivedPacket in interface PacketListener
Parameters:
pe - PacketEvent that has just been received.

sendFailed

public void sendFailed(PacketEvent pe)
Description copied from interface: PacketListener
called if a packet is not successfully sent (for instance, if the connection dies while the packet is queued, or a packet is sent while disconnected).

Specified by:
sendFailed in interface PacketListener
Parameters:
pe - PacketEvent for the failed send