Package clarifai2.api.request
Class ClarifaiRequest.Impl<T>
- java.lang.Object
-
- clarifai2.api.request.ClarifaiRequest.Adapter<T>
-
- clarifai2.api.request.ClarifaiRequest.Impl<T>
-
- All Implemented Interfaces:
ClarifaiRequest<T>
- Enclosing interface:
- ClarifaiRequest<RESULT>
public static class ClarifaiRequest.Impl<T> extends ClarifaiRequest.Adapter<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface clarifai2.api.request.ClarifaiRequest
ClarifaiRequest.Adapter<T>, ClarifaiRequest.Builder<T>, ClarifaiRequest.Callback<RESULT>, ClarifaiRequest.DeserializedRequest<T>, ClarifaiRequest.Impl<T>, ClarifaiRequest.OnFailure, ClarifaiRequest.OnNetworkError, ClarifaiRequest.OnSuccess<RESULT>
-
-
Field Summary
-
Fields inherited from class clarifai2.api.request.ClarifaiRequest.Adapter
client
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
executeAsync(@Nullable ClarifaiRequest.Callback<T> callback)
Executes the given request in a background process, and then returns the result to this one via the callback.@NotNull ClarifaiResponse<T>
executeSync()
Blocks this thread until a response is received, successful or not.-
Methods inherited from class clarifai2.api.request.ClarifaiRequest.Adapter
executeAsync, executeAsync, executeAsync
-
-
-
-
Method Detail
-
executeSync
@NotNull public @NotNull ClarifaiResponse<T> executeSync()
Description copied from interface:ClarifaiRequest
Blocks this thread until a response is received, successful or not.- Returns:
- the response retrieved by invoking this request
-
executeAsync
public void executeAsync(@Nullable @Nullable ClarifaiRequest.Callback<T> callback)
Description copied from interface:ClarifaiRequest
Executes the given request in a background process, and then returns the result to this one via the callback.- Parameters:
callback
- the object that will be notified with the results create the request, successful or not.
-
-