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 java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
QUEUE_SIZE
protected java.lang.Long
shutdownTimestamp
If set, the stanza writer is shut downstatic int
UNACKKNOWLEDGED_STANZAS_QUEUE_SIZE
static int
UNACKKNOWLEDGED_STANZAS_QUEUE_SIZE_HIGH_WATER_MARK
-
Constructor Summary
Constructors Modifier Constructor Description protected
PacketWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
sendStreamElement(Element element)
Sends the specified element to the server.protected void
throwNotConnectedExceptionIfDoneAndResumptionNotPossible()
-
-
-
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 java.lang.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, java.lang.InterruptedException
Sends the specified element to the server.- Parameters:
element
- the element to send.- Throws:
SmackException.NotConnectedException
- if the XMPP connection is not connected.java.lang.InterruptedException
- if the calling thread was interrupted.
-
-