public class OutgoingServerSocketReader extends Object
This class is also responsible for closing the outgoing connection if the remote server sent an end of the stream element.
Constructor and Description |
---|
OutgoingServerSocketReader(org.dom4j.io.XMPPPacketReader reader) |
Modifier and Type | Method and Description |
---|---|
org.dom4j.Element |
getElement(long timeout,
TimeUnit unit)
Retrieves and removes the first received element that was stored in the queue, waiting
if necessary up to the specified wait time if no elements are present on this queue.
|
OutgoingServerSession |
getSession()
Returns the OutgoingServerSession for which this reader is working for or null if
a OutgoingServerSession was not created yet.
|
void |
setSession(OutgoingServerSession session)
Sets the OutgoingServerSession for which this reader is working for.
|
public OutgoingServerSocketReader(org.dom4j.io.XMPPPacketReader reader)
public OutgoingServerSession getSession()
public void setSession(OutgoingServerSession session)
session
- the OutgoingServerSession for which this reader is working forpublic org.dom4j.Element getElement(long timeout, TimeUnit unit) throws InterruptedException
timeout
- how long to wait before giving up, in units of unit.unit
- a TimeUnit determining how to interpret the timeout parameter.InterruptedException
- if interrupted while waiting.Copyright © 2003-2008 Jive Software.