Package io.ably.lib.http
Class BasePaginatedQuery.ResultRequest<T>
- java.lang.Object
-
- io.ably.lib.http.BasePaginatedQuery.ResultRequest<T>
-
- Type Parameters:
T-
- Direct Known Subclasses:
BasePaginatedQuery.ResultRequest.Failed
- Enclosing class:
- BasePaginatedQuery<T>
public static class BasePaginatedQuery.ResultRequest<T> extends java.lang.ObjectWraps a Http.Request> to fixate on either a sync or an async interface. The Http.Request gives you a BasePaginatedResult whether you call its sync() or its async() methods, but we'd like to give it us a PaginatedResult or a AsyncPaginatedResult respectively, so this does the necessary bridging.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBasePaginatedQuery.ResultRequest.Failed<T>A ResultRequest that has already failed due to a previous condition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidasync(Callback<AsyncPaginatedResult<T>> callback)PaginatedResult<T>sync()
-
-
-
Method Detail
-
sync
public PaginatedResult<T> sync() throws AblyException
- Throws:
AblyException
-
async
public void async(Callback<AsyncPaginatedResult<T>> callback)
-
-