Package tigase.component.responses

# Interface AsyncCallback

public interface AsyncCallback
Main interface for callback of all IQ asynchronous request-response mechanism.

Author:
  bmalkow

- ## Method Summary

  Modifier and Type
  Method
  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 Details

  - ### 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.