- All Implemented Interfaces:
public class MultiplexerPacketDeliverer extends Object implements PacketDelivererFallback method used by
SocketConnectionwhen connected to a connection manager. The fallback method will be used when a SocketConnection fails to send a
Packet(probably because the socket was closed).
The first attempt will be to send the packet using another connection to the same connection manager (since managers may have a pool of connections to the server). And if that fails then instances of
Messagemay be stored offline for later retrieval. Since packets may be wrapped by special IQ packets (read the Connection Manager JEP for more information) we need to unwrap the packet and store the wrapped packet offline.
- Gaston Dombiak
Constructors Constructor Description
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
deliver(org.xmpp.packet.Packet packet)Delivers the given packet based on packet recipient and sender.
public void setConnectionManagerDomain(String connectionManagerDomain)
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.
WarningBe careful to enforce concurrency DbC of concurrent by synchronizing any accesses to class resources.