Package org.jivesoftware.smack.tcp
Class XMPPTCPConnection.PacketWriter
java.lang.Object
org.jivesoftware.smack.tcp.XMPPTCPConnection.PacketWriter
- Enclosing class:
XMPPTCPConnection
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprotected LongIf set, the stanza writer is shut downstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidsendNonBlocking(org.jivesoftware.smack.packet.Element element) Sends the specified element to the server.protected voidsendStreamElement(org.jivesoftware.smack.packet.Element element) Sends the specified element to the server.protected void
-
Field Details
-
QUEUE_SIZE
public static final int QUEUE_SIZE- See Also:
-
UNACKKNOWLEDGED_STANZAS_QUEUE_SIZE
public static final int UNACKKNOWLEDGED_STANZAS_QUEUE_SIZE- See Also:
-
UNACKKNOWLEDGED_STANZAS_QUEUE_SIZE_HIGH_WATER_MARK
public static final int UNACKKNOWLEDGED_STANZAS_QUEUE_SIZE_HIGH_WATER_MARK- See Also:
-
shutdownTimestamp
If set, the stanza writer is shut down
-
-
Constructor Details
-
PacketWriter
protected PacketWriter()
-
-
Method Details
-
throwNotConnectedExceptionIfDoneAndResumptionNotPossible
protected void throwNotConnectedExceptionIfDoneAndResumptionNotPossible() throws org.jivesoftware.smack.SmackException.NotConnectedException- Throws:
org.jivesoftware.smack.SmackException.NotConnectedException
-
sendStreamElement
protected void sendStreamElement(org.jivesoftware.smack.packet.Element element) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException Sends the specified element to the server.- Parameters:
element- the element to send.- Throws:
org.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connected.InterruptedException- if the calling thread was interrupted.
-
sendNonBlocking
protected void sendNonBlocking(org.jivesoftware.smack.packet.Element element) throws org.jivesoftware.smack.SmackException.NotConnectedException, org.jivesoftware.smack.SmackException.OutgoingQueueFullException Sends the specified element to the server.- Parameters:
element- the element to send.- Throws:
org.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connected.org.jivesoftware.smack.SmackException.OutgoingQueueFullException- if there is no space in the outgoing queue.
-