Package io.ably.lib.http
Class AsyncPaginatedQuery<T>
- java.lang.Object
-
- io.ably.lib.http.AsyncPaginatedQuery<T>
-
- Type Parameters:
T- the body response type.
public class AsyncPaginatedQuery<T> extends java.lang.ObjectAn object that encapsulates parameters of a REST query with a paginated response
-
-
Constructor Summary
Constructors Constructor Description AsyncPaginatedQuery(Http http, java.lang.String path, Param[] headers, Param[] params, HttpCore.BodyHandler<T> bodyHandler)Construct a PaginatedQueryAsyncPaginatedQuery(Http http, java.lang.String path, Param[] headers, Param[] params, HttpCore.RequestBody requestBody, HttpCore.BodyHandler<T> bodyHandler)Construct a PaginatedQuery
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidget(Callback<AsyncPaginatedResult<T>> callback)Get the result of the first query
-
-
-
Constructor Detail
-
AsyncPaginatedQuery
public AsyncPaginatedQuery(Http http, java.lang.String path, Param[] headers, Param[] params, HttpCore.BodyHandler<T> bodyHandler)
Construct a PaginatedQuery- Parameters:
http- the httpCore instancepath- the path of the resource being queriedheaders- headers to pass into the first and all relative queriesparams- params to pass into the initial querybodyHandler- handler to parse response bodies for first and all relative queries
-
AsyncPaginatedQuery
public AsyncPaginatedQuery(Http http, java.lang.String path, Param[] headers, Param[] params, HttpCore.RequestBody requestBody, HttpCore.BodyHandler<T> bodyHandler)
Construct a PaginatedQuery- Parameters:
http- the http instancepath- the path of the resource being queriedheaders- headers to pass into the first and all relative queriesparams- params to pass into the initial querybodyHandler- handler to parse response bodies for first and all relative queries
-
-
Method Detail
-
get
public void get(Callback<AsyncPaginatedResult<T>> callback)
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.
-
-