Package com.yahoo.processing.rendering
Class AsynchronousRenderer<RESPONSE extends Response>
java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.processing.rendering.Renderer<RESPONSE>
com.yahoo.processing.rendering.AsynchronousRenderer<RESPONSE>
- All Implemented Interfaces:
com.yahoo.component.Component
,com.yahoo.component.Deconstructable
,Cloneable
,Comparable<com.yahoo.component.Component>
- Direct Known Subclasses:
AsynchronousSectionedRenderer
Superclass of all asynchronous renderers.
Subclasses this to receive an executor and the network wiring necessary to respectively
run callback listeners and close up the channel when the response is complete.
- Author:
- bratseth
-
Field Summary
Fields inherited from class com.yahoo.component.AbstractComponent
isDeconstructable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
setNetworkWiring
(com.yahoo.jdisc.handler.ContentChannel channel, com.yahoo.jdisc.handler.CompletionHandler completionHandler) Exposes JDisc wiring to ensure asynchronous cleanup.Methods inherited from class com.yahoo.processing.rendering.Renderer
clone, getEncoding, getMimeType, init, renderResponse
Methods inherited from class com.yahoo.component.AbstractComponent
compareTo, deconstruct, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable, toString
-
Constructor Details
-
AsynchronousRenderer
public AsynchronousRenderer()
-
-
Method Details
-
setNetworkWiring
public abstract void setNetworkWiring(com.yahoo.jdisc.handler.ContentChannel channel, com.yahoo.jdisc.handler.CompletionHandler completionHandler) Exposes JDisc wiring to ensure asynchronous cleanup.- Parameters:
channel
- the channel to the client receiving the responsecompletionHandler
- the JDisc completion handler which will be invoked at the end of the rendering- Throws:
IllegalStateException
- if attempted invoked more than once
-