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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onBegin(org.eclipse.jetty.client.Request request)
    Callback method invoked when the request begins being processed in order to be sent.
    void
    onComplete(org.eclipse.jetty.client.Result result)
     
    void
    onQueued(org.eclipse.jetty.client.Request request)
    Callback method invoked when the request is queued, waiting to be sent.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 calling HttpJettySolrClient methods.
      Specified by:
      onBegin in interface org.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 calling HttpJettySolrClient methods.
      Specified by:
      onQueued in interface org.eclipse.jetty.client.Request.QueuedListener
      Parameters:
      request - the request being queued
    • onComplete

      public void onComplete(org.eclipse.jetty.client.Result result)
      Specified by:
      onComplete in interface org.eclipse.jetty.client.Response.CompleteListener