Package com.google.api.gax.rpc
Class PagedCallable<RequestT,ResponseT,PagedListResponseT>
- java.lang.Object
-
- com.google.api.gax.rpc.UnaryCallable<RequestT,PagedListResponseT>
-
- com.google.api.gax.rpc.PagedCallable<RequestT,ResponseT,PagedListResponseT>
-
@InternalApi("For use by transport-specific implementations") public class PagedCallable<RequestT,ResponseT,PagedListResponseT> extends UnaryCallable<RequestT,PagedListResponseT>
A UnaryCallable which provides page streaming functionality for unary calls.Public for technical reasons - for advanced usage.
-
-
Constructor Summary
Constructors Constructor Description PagedCallable(UnaryCallable<RequestT,ResponseT> callable, PagedListResponseFactory<RequestT,ResponseT,PagedListResponseT> pagedListResponseFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiFuture<PagedListResponseT>futureCall(RequestT request, ApiCallContext context)Perform a call asynchronously.StringtoString()-
Methods inherited from class com.google.api.gax.rpc.UnaryCallable
call, call, futureCall, withDefaultCallContext
-
-
-
-
Constructor Detail
-
PagedCallable
public PagedCallable(UnaryCallable<RequestT,ResponseT> callable, PagedListResponseFactory<RequestT,ResponseT,PagedListResponseT> pagedListResponseFactory)
-
-
Method Detail
-
futureCall
public ApiFuture<PagedListResponseT> futureCall(RequestT request, ApiCallContext context)
Description copied from class:UnaryCallablePerform a call asynchronously.- Specified by:
futureCallin classUnaryCallable<RequestT,PagedListResponseT>context-ApiCallContextto make the call with- Returns:
ApiFuturefor the call result
-
-