Interface AsyncCallback


  • public interface AsyncCallback
    Main interface for callback of all IQ asynchronous request-response mechanism.
    Author:
    bmalkow
    • Method Detail

      • onError

        void onError​(Packet responseStanza,
                     java.lang.String errorCondition)
        Called when received response has type error.
        Parameters:
        responseStanza - received IQ stanza
        errorCondition - error condition
      • onSuccess

        void onSuccess​(Packet responseStanza)
        Called when received response has type result.
        Parameters:
        responseStanza - received stanza
      • onTimeout

        void onTimeout()
        Called when response wasn't received in given time.