tigase.component.responses

## Interface AsyncCallback

-     public interface AsyncCallback

  Main interface for callback of all IQ asynchronous request-response mechanism.
  Author:
    bmalkow

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onError(Packet responseStanza, String errorCondition)` Called when received response has type error.
    `void` | `onSuccess(Packet responseStanza)` Called when received response has type result.
    `void` | `onTimeout()` Called when response wasn't received in given time.

- - ### Method Detail

    - #### onError

          void onError(Packet responseStanza,
                       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.

Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.