Class EagerContentHandler.RetainedContentLoaderFactory.RetainedContentLoader

java.lang.Object
org.eclipse.jetty.server.handler.EagerContentHandler.ContentLoader
org.eclipse.jetty.server.handler.EagerContentHandler.RetainedContentLoaderFactory.RetainedContentLoader
All Implemented Interfaces:
Runnable, Invocable, Invocable.Task
Enclosing class:
EagerContentHandler.RetainedContentLoaderFactory

public static class EagerContentHandler.RetainedContentLoaderFactory.RetainedContentLoader extends EagerContentHandler.ContentLoader implements Invocable.Task
Delay dispatch until all content or an effective buffer size is reached
  • Constructor Details

    • RetainedContentLoader

      public RetainedContentLoader(Handler handler, Request request, Response response, Callback callback, long maxRetainedBytes, int framingOverhead, boolean rejectWhenExceeded)
      Parameters:
      handler - The next handler
      request - The delayed request
      response - The delayed response
      callback - The delayed callback
      maxRetainedBytes - The maximum size to buffer before dispatching to the next handler; or -1 for a heuristically determined default
      framingOverhead - The bytes to account for per chunk when calculating the size; or -1 for a heuristic.
      rejectWhenExceeded - If true then requests are rejected if the content is not complete before maxRetainedBytes.
  • Method Details