Package org.jivesoftware.openfire.nio
Class OfflinePacketDeliverer
java.lang.Object
org.jivesoftware.openfire.nio.OfflinePacketDeliverer
- All Implemented Interfaces:
PacketDeliverer
Fallback method used by
NettyConnection when a
connection fails to send a Packet (likely because it was closed). Message packets
will be stored offline for later retrieval. IQ and Presence packets are dropped.- Author:
- Tom Evans
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeliver(org.xmpp.packet.Packet packet) Delivers the given packet based on packet recipient and sender.
-
Constructor Details
-
OfflinePacketDeliverer
public OfflinePacketDeliverer()
-
-
Method Details
-
deliver
Description copied from interface:PacketDelivererDelivers the given packet based on packet recipient and sender. The deliverer defers actual routing decisions to other classes.Warning
Be careful to enforce concurrency DbC of concurrent by synchronizing any accesses to class resources.- Specified by:
deliverin interfacePacketDeliverer- Parameters:
packet- the packet to route- Throws:
UnauthorizedException- if the user is not authorisedPacketException- if the packet is null or the packet could not be routed.
-