public abstract class ResultCallback<T> extends Object
| 构造器和说明 |
|---|
ResultCallback() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
onComplete()
Will be called when all messages are received.
|
abstract void |
onError(Exception e)
Will be called when an Exception occurs.
|
abstract void |
onEvent(T message)
Will be called as soon as the server replies.
|
void |
onOpen(Status status)
Will be called as soon as the connection is established, only for http stream request.
|
public void onOpen(Status status)
status - The status.public abstract void onEvent(T message)
message - The message body in a structured class.public abstract void onComplete()
public abstract void onError(Exception e)
e - The exception instance.Copyright © 2024. All rights reserved.