Class HttpListenerFactory.RequestResponseListener
java.lang.Object
org.apache.solr.client.solrj.jetty.HttpListenerFactory.RequestResponseListener
- All Implemented Interfaces:
EventListener,org.eclipse.jetty.client.Request.BeginListener,org.eclipse.jetty.client.Request.QueuedListener,org.eclipse.jetty.client.Request.RequestListener,org.eclipse.jetty.client.Response.CompleteListener,org.eclipse.jetty.client.Response.ResponseListener
- Enclosing interface:
HttpListenerFactory
public abstract static class HttpListenerFactory.RequestResponseListener
extends Object
implements org.eclipse.jetty.client.Request.BeginListener, org.eclipse.jetty.client.Response.CompleteListener, org.eclipse.jetty.client.Request.QueuedListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonBegin(org.eclipse.jetty.client.Request request) Callback method invoked when the request begins being processed in order to be sent.voidonComplete(org.eclipse.jetty.client.Result result) voidonQueued(org.eclipse.jetty.client.Request request) Callback method invoked when the request is queued, waiting to be sent.
-
Constructor Details
-
RequestResponseListener
public RequestResponseListener()
-
-
Method Details
-
onBegin
public void onBegin(org.eclipse.jetty.client.Request request) Callback method invoked when the request begins being processed in order to be sent. This is the last opportunity to modify the request. This method will NOT be ensured to be called on the same thread as the thread callingHttpJettySolrClientmethods.- Specified by:
onBeginin interfaceorg.eclipse.jetty.client.Request.BeginListener- Parameters:
request- the request that begins being processed
-
onQueued
public void onQueued(org.eclipse.jetty.client.Request request) Callback method invoked when the request is queued, waiting to be sent. This method will be ensured to be called on the same thread as the thread callingHttpJettySolrClientmethods.- Specified by:
onQueuedin interfaceorg.eclipse.jetty.client.Request.QueuedListener- Parameters:
request- the request being queued
-
onComplete
public void onComplete(org.eclipse.jetty.client.Result result) - Specified by:
onCompletein interfaceorg.eclipse.jetty.client.Response.CompleteListener
-