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

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

Name Description
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
Name Description
callable UnaryCallable<RequestT,ResponseT>
pagedListResponseFactory PagedListResponseFactory<RequestT,ResponseT,PagedListResponseT>

Methods

futureCall(RequestT request, ApiCallContext context)

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

Perform a call asynchronously.

Parameters
Name Description
request RequestT
context ApiCallContext
Returns
Type Description
ApiFuture<PagedListResponseT>
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides