Class PagedCallable<RequestT,ResponseT,PagedListResponseT> (2.7.1)

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.

Inheritance

java.lang.Object > UnaryCallable > PagedCallable<RequestT,ResponseT,PagedListResponseT>

Type Parameters

NameDescription
RequestT
ResponseT
PagedListResponseT

Constructors

PagedCallable(UnaryCallable<RequestT,ResponseT> callable, PagedListResponseFactory<RequestT,ResponseT,PagedListResponseT> pagedListResponseFactory)

public PagedCallable(UnaryCallable<RequestT,ResponseT> callable, PagedListResponseFactory<RequestT,ResponseT,PagedListResponseT> pagedListResponseFactory)
Parameters
NameDescription
callableUnaryCallable<RequestT,ResponseT>
pagedListResponseFactoryPagedListResponseFactory<RequestT,ResponseT,PagedListResponseT>

Methods

futureCall(RequestT request, ApiCallContext context)

public ApiFuture<PagedListResponseT> futureCall(RequestT request, ApiCallContext context)

Perform a call asynchronously.

Parameters
NameDescription
requestRequestT
contextApiCallContext
Returns
TypeDescription
com.google.api.core.ApiFuture<PagedListResponseT>
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides