|
Openfire 3.4.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.server.OutgoingSessionPromise
public class OutgoingSessionPromise
An OutgoingSessionPromise provides an asynchronic way for sending packets to remote servers. When looking for a route to a remote server that does not have an existing connection, a session promise is returned. This class will queue packets and process them in another thread. The processing thread will use a pool of thread that will actually do the hard work. The threads in the pool will try to connect to remote servers and deliver the packets. If an error occured while establishing the connection or sending the packet an error will be returned to the sender of the packet.
Method Summary | |
---|---|
JID |
getAddress()
Returns the XMPP address. |
static OutgoingSessionPromise |
getInstance()
|
void |
process(Packet packet)
Process an XMPP packet. |
void |
shutdown()
Shuts down the thread that consumes the queued packets and also stops the pool of threads that actually send the packets to the remote servers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static OutgoingSessionPromise getInstance()
public void shutdown()
public JID getAddress()
RoutableChannelHandler
getAddress
in interface RoutableChannelHandler
public void process(Packet packet)
ChannelHandler
process
in interface ChannelHandler
packet
- a packet to process.
|
Openfire 3.4.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |