public interface PacketListener
processPacket(Packet)method will be called. This is the opposite approach to the functionality provided by a
PacketCollectorwhich lets you block while waiting for results.
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.