AsyncRequest

public class AsyncRequest extends Object

Nested Class Summary

interface AsyncRequest.EventStartCallback  
class AsyncRequest.SettableFutureCallback<T>  

Public Constructor Summary

AsyncRequest(AbstractGoogleJsonClientRequest<T> requestToExecute, RetryPolicy retryPolicy, StatsManager.OperationStats operationStats)

Public Method Summary

void
cancel()
SettableFutureCallback<T>
ListenableFuture<T>
AbstractGoogleJsonClientRequest<T>
int
AsyncRequest.Status
void
void
setStatus(AsyncRequest.Status newStatus)

Inherited Method Summary

Public Constructors

public AsyncRequest (AbstractGoogleJsonClientRequest<T> requestToExecute, RetryPolicy retryPolicy, StatsManager.OperationStats operationStats)

Parameters
requestToExecute
retryPolicy
operationStats

Public Methods

public void cancel ()

public SettableFutureCallback<T> getCallback ()

public ListenableFuture<T> getFuture ()

public AbstractGoogleJsonClientRequest<T> getRequest ()

public int getRetries ()

public AsyncRequest.Status getStatus ()

public void incrementRetries ()

public void setStatus (AsyncRequest.Status newStatus)

Parameters
newStatus

Send feedback about...

Cloud Search
Cloud Search