Class XMPPTCPConnection.PacketWriter

  • Enclosing class:
    XMPPTCPConnection

    protected class XMPPTCPConnection.PacketWriter
    extends java.lang.Object
    • Field Detail

      • 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 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,
                                         java.lang.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.
        java.lang.InterruptedException - if the calling thread was interrupted.