Package org.jivesoftware.smack.tcp
Class XMPPTCPConnection.PacketWriter
- java.lang.Object
-
- org.jivesoftware.smack.tcp.XMPPTCPConnection.PacketWriter
-
- Enclosing class:
- XMPPTCPConnection
protected class XMPPTCPConnection.PacketWriter extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intQUEUE_SIZEprotected LongshutdownTimestampIf set, the stanza writer is shut downstatic intUNACKKNOWLEDGED_STANZAS_QUEUE_SIZEstatic intUNACKKNOWLEDGED_STANZAS_QUEUE_SIZE_HIGH_WATER_MARK
-
Constructor Summary
Constructors Modifier Constructor Description protectedPacketWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsendNonBlocking(Element element)Sends the specified element to the server.protected voidsendStreamElement(Element element)Sends the specified element to the server.protected voidthrowNotConnectedExceptionIfDoneAndResumptionNotPossible()
-
-
-
Field Detail
-
QUEUE_SIZE
public static final int QUEUE_SIZE
- See Also:
- Constant Field Values
-
UNACKKNOWLEDGED_STANZAS_QUEUE_SIZE
public static final int UNACKKNOWLEDGED_STANZAS_QUEUE_SIZE
- See Also:
- Constant Field Values
-
UNACKKNOWLEDGED_STANZAS_QUEUE_SIZE_HIGH_WATER_MARK
public static final int UNACKKNOWLEDGED_STANZAS_QUEUE_SIZE_HIGH_WATER_MARK
- See Also:
- Constant Field Values
-
shutdownTimestamp
protected volatile Long shutdownTimestamp
If set, the stanza writer is shut down
-
-
Constructor Detail
-
PacketWriter
protected PacketWriter()
-
-
Method Detail
-
throwNotConnectedExceptionIfDoneAndResumptionNotPossible
protected void throwNotConnectedExceptionIfDoneAndResumptionNotPossible() throws SmackException.NotConnectedException
-
sendStreamElement
protected void sendStreamElement(Element element) throws SmackException.NotConnectedException, InterruptedException
Sends the specified element to the server.- Parameters:
element- the element to send.- Throws:
SmackException.NotConnectedException- if the XMPP connection is not connected.InterruptedException- if the calling thread was interrupted.
-
sendNonBlocking
protected void sendNonBlocking(Element element) throws SmackException.NotConnectedException, SmackException.OutgoingQueueFullException
Sends the specified element to the server.- Parameters:
element- the element to send.- Throws:
SmackException.NotConnectedException- if the XMPP connection is not connected.SmackException.OutgoingQueueFullException- if there is no space in the outgoing queue.
-
-