Package io.ably.lib.http
Class AsyncPaginatedQuery<T>
java.lang.Object
io.ably.lib.http.AsyncPaginatedQuery<T>
- Type Parameters:
-
T- the body response type.
An object that encapsulates parameters of a REST query with a paginated response
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncPaginatedQuery(Http http, String path, Param[] headers, Param[] params, HttpCore.BodyHandler<T> bodyHandler) Construct a PaginatedQueryAsyncPaginatedQuery(Http http, String path, Param[] headers, Param[] params, HttpCore.RequestBody requestBody, HttpCore.BodyHandler<T> bodyHandler) Construct a PaginatedQuery -
Method Summary
Modifier and TypeMethodDescriptionvoidget(Callback<AsyncPaginatedResult<T>> callback) Get the result of the first query
-
Constructor Details
-
AsyncPaginatedQuery
public AsyncPaginatedQuery(Http http, String path, Param[] headers, Param[] params, HttpCore.BodyHandler<T> bodyHandler) Construct a PaginatedQuery- Parameters:
-
http- the httpCore instance -
path- the path of the resource being queried -
headers- headers to pass into the first and all relative queries -
params- params to pass into the initial query -
bodyHandler- handler to parse response bodies for first and all relative queries
-
AsyncPaginatedQuery
public AsyncPaginatedQuery(Http http, String path, Param[] headers, Param[] params, HttpCore.RequestBody requestBody, HttpCore.BodyHandler<T> bodyHandler) Construct a PaginatedQuery- Parameters:
-
http- the http instance -
path- the path of the resource being queried -
headers- headers to pass into the first and all relative queries -
params- params to pass into the initial query -
bodyHandler- handler to parse response bodies for first and all relative queries
-
-
Method Details
-
get
Get the result of the first query- Parameters:
-
callback- On success returns A PaginatedResultgiving the first page of results together with any available links to related results pages.
-