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 Invocable
Invocable.Callable, Invocable.InvocationType, Invocable.ReadyTask, Invocable.TaskNested classes/interfaces inherited from interface Invocable.Task
Invocable.Task.Abstract - 
Field Summary
Fields inherited from interface 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 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- 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
- Specified by:
 getInvocationTypein interfaceInvocable- Returns:
 - The InvocationType of this object
 
 - 
run
 
 -