Class ResultCallback<T>

java.lang.Object
com.alibaba.dashscope.legacy_2x.common.ResultCallback<T>

@Deprecated public abstract class ResultCallback<T> extends Object
Deprecated.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    Deprecated.
    Will be called when all messages are received.
    abstract void
    Deprecated.
    Will be called when an Exception occurs.
    abstract void
    onEvent(T message)
    Deprecated.
    Will be called as soon as the server replies.
    void
    onOpen(Status status)
    Deprecated.
    Will be called as soon as the connection is established, only for http stream request.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ResultCallback

      public ResultCallback()
      Deprecated.
  • Method Details

    • onOpen

      public void onOpen(Status status)
      Deprecated.
      Will be called as soon as the connection is established, only for http stream request.
      Parameters:
      status - The status.
    • onEvent

      public abstract void onEvent(T message)
      Deprecated.
      Will be called as soon as the server replies.
      Parameters:
      message - The message body in a structured class.
    • onComplete

      public abstract void onComplete()
      Deprecated.
      Will be called when all messages are received.
    • onError

      public abstract void onError(Exception e)
      Deprecated.
      Will be called when an Exception occurs.
      Parameters:
      e - The exception instance.