Searched refs:completionFuture (Results 1 – 1 of 1) sorted by relevance
137 private final SettableFuture<Long> completionFuture; field in CronetUrlEngine.CronetResponse143 SettableFuture<Long> completionFuture, in CronetResponse() argument147 this.completionFuture = completionFuture; in CronetResponse()166 return completionFuture; in readResponseBody()182 private final SettableFuture<Long> completionFuture = SettableFuture.create(); field in CronetUrlEngine.CronetCallback219 cronetResponse = new CronetResponse(urlRequest, urlResponseInfo, completionFuture, this); in onResponseStarted()236 if (completionFuture.isCancelled()) { in onReadCompleted()260 completionFuture.set(numBytesWritten); in onSucceeded()302 completionFuture.setException(requestException); in onFailed()313 completionFuture.setException(new RequestException("UrlRequest cancelled")); in onCanceled()