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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.Callable, Invocable.InvocationType, Invocable.ReadyTask, Invocable.Task
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable.Task
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, Callback callback, long maxRetainedBytes, int framingOverhead, boolean rejectWhenExceeded) -
Method Summary
Methods inherited from class org.eclipse.jetty.server.handler.EagerContentHandler.ContentLoader
getCallback, getHandler, getRequest, getResponse, handle, handle
-
Constructor Details
-
RetainedContentLoader
public RetainedContentLoader(Handler handler, Request request, Response response, 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
- Iftrue
then requests are rejected if the content is not complete before maxRetainedBytes.
-
-
Method Details
-
load
protected void load()Description copied from class:EagerContentHandler.ContentLoader
Called 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:
load
in classEagerContentHandler.ContentLoader
-
read
protected void read(boolean execute) -
getInvocationType
- Specified by:
getInvocationType
in interfaceInvocable
- Returns:
- The InvocationType of this object
-
run
-