Class StatisticsHandler.MinimumDataRateHandler.MinimumDataRateResponse

java.lang.Object
org.eclipse.jetty.server.Response.Wrapper
org.eclipse.jetty.server.handler.StatisticsHandler.MinimumDataRateHandler.MinimumDataRateResponse
All Implemented Interfaces:
org.eclipse.jetty.io.Content.Sink, Response
Enclosing class:
StatisticsHandler.MinimumDataRateHandler

protected class StatisticsHandler.MinimumDataRateHandler.MinimumDataRateResponse extends Response.Wrapper
  • Constructor Details

  • Method Details

    • getRequest

      Specified by:
      getRequest in interface Response
      Overrides:
      getRequest in class Response.Wrapper
      Returns:
      the Request associated with this Response
    • write

      public void write(boolean last, ByteBuffer byteBuffer, org.eclipse.jetty.util.Callback callback)
      Description copied from interface: Response

      The invocation of the passed Callback is serialized with previous calls of this method, so that it is not invoked until any invocation of the callback of a previous call to this method has returned.

      Thus a Callback should not block waiting for a callback of a future call to this method.

      Specified by:
      write in interface org.eclipse.jetty.io.Content.Sink
      Specified by:
      write in interface Response
      Overrides:
      write in class Response.Wrapper
      Parameters:
      last - whether the ByteBuffer is the last to write
      byteBuffer - the ByteBuffer to write
      callback - the callback to notify when the write operation is complete