接口 Callback<T>
-
- 所有已知实现类:
Yggdrasil.CB
public interface Callback<T>
-
-
方法概要
修饰符和类型 方法 说明 default void
onError(Throwable thrown)
default void
onFailed(byte[] datas, int http_code)
void
onFailed(FailedMessage err, int NetCode)
void
onSuccessful(T t, int NetCode)
-
-
-
方法详细资料
-
onSuccessful
void onSuccessful(T t, int NetCode) throws IOException
- 抛出:
IOException
-
onFailed
void onFailed(FailedMessage err, int NetCode) throws IOException
- 抛出:
IOException
-
onFailed
default void onFailed(byte[] datas, int http_code) throws IOException
- 抛出:
IOException
-
onError
default void onError(Throwable thrown)
-
-