public interface StreamInternal<T extends Stream> extends Stream<T>
| 限定符和类型 | 方法和说明 |
|---|---|
int |
demands()
获取需求数量(0,1,2)
|
void |
insuranceCancel()
保险取消
|
void |
insuranceStart(StreamManger streamManger,
long streamTimeout)
保险开始(避免永久没有回调,造成内存不能释放)
|
void |
onError(Throwable error)
异常时
|
void |
onProgress(boolean isSend,
int val,
int max)
进度时
|
void |
onReply(MessageInternal reply)
答复时
|
long |
timeout()
超时设定(单位:毫秒)
|
isDone, sid, thenError, thenProgressint demands()
long timeout()
void insuranceStart(StreamManger streamManger, long streamTimeout)
streamManger - 流管理器streamTimeout - 流超时void insuranceCancel()
void onReply(MessageInternal reply)
reply - 答复void onError(Throwable error)
error - 异常void onProgress(boolean isSend,
int val,
int max)
isSend - 是否为发送进度val - 当时值max - 最大值Copyright © 2024. All rights reserved.