public class MultiplexerPacketDeliverer extends Object implements PacketDeliverer
SocketConnection
when
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 Message
may 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.
Constructor and Description |
---|
MultiplexerPacketDeliverer() |
Modifier and Type | Method and Description |
---|---|
void |
deliver(org.xmpp.packet.Packet packet)
Delivers the given packet based on packet recipient and sender.
|
void |
setConnectionManagerDomain(String connectionManagerDomain) |
public void setConnectionManagerDomain(String connectionManagerDomain)
public void deliver(org.xmpp.packet.Packet packet) throws UnauthorizedException, PacketException
PacketDeliverer
deliver
in interface PacketDeliverer
packet
- the packet to routePacketException
- if the packet is null or the packet could not be routed.UnauthorizedException
Copyright © 2003-2008 Jive Software.