Class XMPPTCPConnection.PacketWriter

java.lang.Object
org.jivesoftware.smack.tcp.XMPPTCPConnection.PacketWriter
Enclosing class:
XMPPTCPConnection

protected class XMPPTCPConnection.PacketWriter extends Object
  • 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

      protected volatile Long 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.