Package org.jivesoftware.openfire.nio
Class OfflinePacketDeliverer
- java.lang.Object
-
- org.jivesoftware.openfire.nio.OfflinePacketDeliverer
-
- All Implemented Interfaces:
PacketDeliverer
public class OfflinePacketDeliverer extends Object implements PacketDeliverer
Fallback method used byNIOConnectionwhen a connection fails to send aPacket(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 Constructor Description OfflinePacketDeliverer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeliver(org.xmpp.packet.Packet packet)Delivers the given packet based on packet recipient and sender.
-
-
-
Method Detail
-
deliver
public void deliver(org.xmpp.packet.Packet packet) throws UnauthorizedException, PacketExceptionDescription 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.
-
-