Interface Continuation<F>

Type Parameters:
F - The data type of the callback´s response in case of successful outcome.

public interface Continuation<F>
This interface is to be used in asynchronous calls to the media server.
Since:
2.0.0
Author:
Luis López (llopez@gsyc.es), Ivan Gracia (igracia@gsyc.es)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method gets called when the operation fails.
    void
    onSuccess(F result)
    This method is called when the operation succeeds.
  • Method Details

    • onSuccess

      void onSuccess(F result) throws Exception
      This method is called when the operation succeeds.
      Parameters:
      result - The result of the completed operation
      Throws:
      Exception
    • onError

      void onError(Throwable cause) throws Exception
      This method gets called when the operation fails.
      Parameters:
      cause - The cause of the failure
      Throws:
      Exception