public interface PacketListener
processPacket(Packet)
method will be called. This is the
opposite approach to the functionality provided by a PacketCollector
which lets you block while waiting for results.Modifier and Type | Method and Description |
---|---|
void |
processPacket(Packet packet)
Process the next packet sent to this packet listener.
|
void processPacket(Packet packet) throws SmackException.NotConnectedException
A single thread is responsible for invoking all listeners, so it's very important that implementations of this method not block for any extended period of time.
packet
- the packet to process.SmackException.NotConnectedException