public interface Observer
| Modifier and Type | Method and Description |
|---|---|
void |
error(Throwable throwable)
异常
|
void |
fail()
连接失败
|
void |
other(int code)
其它错误
|
void |
success()
连接成功
|
void success()
void fail()
void error(Throwable throwable)
throwable - 异常void other(int code)
code - 状态码