UrlRequestCallbacks.CallbackAndResponseFuturePair

public class UrlRequestCallbacks.CallbackAndResponseFuturePair<ResponseBodyT, CallbackT extends InMemoryTransformCronetCallback<ResponseBodyT>>


A named pair-like structure encapsulating Cronet callbacks and associated response futures.

The request should be used to pass to CronetEngine.newUrlRequest(), the future will contain the response to the request.

Parameters
<CallbackT extends InMemoryTransformCronetCallback<ResponseBodyT>>

the subtype of the callback

<ResponseBodyT>

The type of the deserialized response body

Summary

Public methods

CallbackT
Future<CronetResponse<ResponseBodyT>>

Public methods

getCallback

public CallbackT getCallback()

getFuture

public Future<CronetResponse<ResponseBodyT>> getFuture()