public class HttpResponseCallback
extends java.lang.Object
implements org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>
FutureCallback
for asynchronous View responses.
This callback is called by the asynchronous executor for every response that
got returned from the view node. The code either dispatches parsing of the
actual content or decides to retry or abort, depending on the response status
code and values.Constructor and Description |
---|
HttpResponseCallback(HttpOperation op,
ViewConnection vconn,
org.apache.http.HttpHost host)
Create a new callback.
|
public HttpResponseCallback(HttpOperation op, ViewConnection vconn, org.apache.http.HttpHost host)
op
- the underlying operation.vconn
- the view connection to reference.host
- the target host from the response.public void completed(org.apache.http.HttpResponse response)
completed
in interface org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>
public void failed(java.lang.Exception e)
failed
in interface org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>
public void cancelled()
cancelled
in interface org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>
Copyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.