Index
C G H J R
All Classes|All Packages
All Classes|All Packages
All Classes|All Packages
C
- create() - Static method in class retrofit2.adapter.java8.Java8CallAdapterFactory
-
Deprecated.
G
- get(Type, Annotation[], Retrofit) - Method in class retrofit2.adapter.java8.Java8CallAdapterFactory
-
Deprecated.
H
- HttpException - Exception in retrofit2.adapter.java8
-
Deprecated.Use
HttpException. - HttpException(Response<?>) - Constructor for exception retrofit2.adapter.java8.HttpException
-
Deprecated.
J
- Java8CallAdapterFactory - Class in retrofit2.adapter.java8
-
Deprecated.Retrofit includes support for CompletableFuture. This no longer needs to be added to the Retrofit instance explicitly.
A call adapter which creates Java 8 futures.
Adding this class to
Retrofitallows you to returnCompletableFuturefrom service methods.
There are two configurations supported for theinterface MyService { @GET("user/me") CompletableFuture<User> getUser() }CompletableFuturetype parameter:- Direct body (e.g.,
CompletableFuture<User>) returns the deserialized body for 2XX responses, setsHttpExceptionerrors for non-2XX responses, and setsIOExceptionfor network errors. - Response wrapped body (e.g.,
CompletableFuture<Response<User>>) returns aResponseobject for all HTTP responses and setsIOExceptionfor network errors
- Direct body (e.g.,
R
- retrofit2.adapter.java8 - package retrofit2.adapter.java8
All Classes|All Packages