Package ai.preferred.venom.fetcher
Interface Callback
-
- All Known Implementing Classes:
FileManagerCallback,MysqlFileManager.CompletedThreadedCallback
public interface Callback- Author:
- Ween Jiann Lee
-
-
Field Summary
Fields Modifier and Type Field Description static CallbackEMPTY_CALLBACKAn instance of empty callback.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancelled(@NotNull Request request)Method to be call upon cancellation of request.voidcompleted(@NotNull Request request, @NotNull Response response)Method to be call upon completion of request.voidfailed(@NotNull Request request, @NotNull Exception ex)Method to be call upon failure of request.
-
-
-
Field Detail
-
EMPTY_CALLBACK
static final Callback EMPTY_CALLBACK
An instance of empty callback.
-
-
Method Detail
-
completed
void completed(@NotNull @NotNull Request request, @NotNull @NotNull Response response)Method to be call upon completion of request.- Parameters:
request- Request sent.response- Response returned.
-
failed
void failed(@NotNull @NotNull Request request, @NotNull @NotNull Exception ex)Method to be call upon failure of request.- Parameters:
request- Request sent.ex- Exception received.
-
cancelled
void cancelled(@NotNull @NotNull Request request)Method to be call upon cancellation of request.- Parameters:
request- Request sent.
-
-