Class ResultCallback<T>
java.lang.Object
com.alibaba.dashscope.legacy_2x.common.ResultCallback<T>
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidDeprecated.Will be called when all messages are received.abstract voidDeprecated.Will be called when an Exception occurs.abstract voidDeprecated.Will be called as soon as the server replies.voidDeprecated.Will be called as soon as the connection is established, only for http stream request.
-
Constructor Details
-
ResultCallback
public ResultCallback()Deprecated.
-
-
Method Details
-
onOpen
Deprecated.Will be called as soon as the connection is established, only for http stream request.- Parameters:
status- The status.
-
onEvent
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
Deprecated.Will be called when an Exception occurs.- Parameters:
e- The exception instance.
-