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, org.eclipse.jetty.util.thread.Invocable, org.eclipse.jetty.util.thread.Invocable.Task
- Enclosing class:
EagerContentHandler.RetainedContentLoaderFactory
public static class EagerContentHandler.RetainedContentLoaderFactory.RetainedContentLoader
extends EagerContentHandler.ContentLoader
implements org.eclipse.jetty.util.thread.Invocable.Task
Delay dispatch until all content or an effective buffer size is reached
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
org.eclipse.jetty.util.thread.Invocable.Callable, org.eclipse.jetty.util.thread.Invocable.InvocationType, org.eclipse.jetty.util.thread.Invocable.ReadyTask, org.eclipse.jetty.util.thread.Invocable.TaskNested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable.Task
org.eclipse.jetty.util.thread.Invocable.Task.Abstract -
Field Summary
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking, NOOP -
Constructor Summary
ConstructorsConstructorDescriptionRetainedContentLoader(Handler handler, Request request, Response response, org.eclipse.jetty.util.Callback callback, long maxRetainedBytes, int framingOverhead, boolean rejectWhenExceeded) -
Method Summary
Methods inherited from class EagerContentHandler.ContentLoader
getCallback, getHandler, getRequest, getResponse, handle, handle
-
Constructor Details
-
RetainedContentLoader
public RetainedContentLoader(Handler handler, Request request, Response response, org.eclipse.jetty.util.Callback callback, long maxRetainedBytes, int framingOverhead, boolean rejectWhenExceeded) - Parameters:
handler- The next handlerrequest- The delayed requestresponse- The delayed responsecallback- The delayed callbackmaxRetainedBytes- The maximum size to buffer before dispatching to the next handler; or -1 for a heuristically determined defaultframingOverhead- The bytes to account for per chunk when calculating the size; or -1 for a heuristic.rejectWhenExceeded- Iftruethen requests are rejected if the content is not complete before maxRetainedBytes.
-
-
Method Details
-
load
protected void load()Description copied from class:EagerContentHandler.ContentLoaderCalled to initiate eager loading of the content. The content may be loaded within the scope of this method, or within the scope of a callback as a result of aRequest.demand(Runnable)call made by this methhod.- Specified by:
loadin classEagerContentHandler.ContentLoader
-
read
protected void read(boolean execute) -
getInvocationType
public org.eclipse.jetty.util.thread.Invocable.InvocationType getInvocationType()- Specified by:
getInvocationTypein interfaceorg.eclipse.jetty.util.thread.Invocable
-
run
-