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.Connection.addPacketListener(PacketListener,
org.jivesoftware.smack.filter.PacketFilter)| Modifier and Type | Method and Description |
|---|---|
void |
processPacket(org.xmpp.packet.Packet packet)
Process the next packet sent to this packet listener.
|
void processPacket(org.xmpp.packet.Packet packet)
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.Copyright © 2014. All Rights Reserved.