Package com.yahoo.search.rendering
Class EventRenderer
java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.processing.rendering.Renderer<RESPONSE>
com.yahoo.processing.rendering.AsynchronousRenderer<RESPONSE>
com.yahoo.processing.rendering.AsynchronousSectionedRenderer<Result>
com.yahoo.search.rendering.EventRenderer
- All Implemented Interfaces:
com.yahoo.component.Component
,com.yahoo.component.Deconstructable
,Cloneable
,Comparable<com.yahoo.component.Component>
public class EventRenderer
extends com.yahoo.processing.rendering.AsynchronousSectionedRenderer<Result>
A Server-Sent Events (SSE) renderer for asynchronous events such as
tokens from a language model.
- Author:
- lesters
-
Field Summary
Fields inherited from class com.yahoo.component.AbstractComponent
isDeconstructable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beginList
(com.yahoo.processing.response.DataList<?> dataList) void
beginResponse
(OutputStream outputStream) void
data
(com.yahoo.processing.response.Data data) void
endList
(com.yahoo.processing.response.DataList<?> dataList) void
Methods inherited from class com.yahoo.processing.rendering.AsynchronousSectionedRenderer
clientClosed, deconstruct, getExecution, getRecursionLevel, getResponse, init, onClientClosed, renderResponse, renderResponseBeforeHandover, setNetworkWiring
Methods inherited from class com.yahoo.processing.rendering.Renderer
clone
Methods inherited from class com.yahoo.component.AbstractComponent
compareTo, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable, toString
-
Constructor Details
-
EventRenderer
public EventRenderer() -
EventRenderer
-
-
Method Details
-
beginResponse
- Specified by:
beginResponse
in classcom.yahoo.processing.rendering.AsynchronousSectionedRenderer<Result>
- Throws:
IOException
-
beginList
- Specified by:
beginList
in classcom.yahoo.processing.rendering.AsynchronousSectionedRenderer<Result>
- Throws:
IOException
-
data
- Specified by:
data
in classcom.yahoo.processing.rendering.AsynchronousSectionedRenderer<Result>
- Throws:
IOException
-
endList
- Specified by:
endList
in classcom.yahoo.processing.rendering.AsynchronousSectionedRenderer<Result>
- Throws:
IOException
-
endResponse
- Specified by:
endResponse
in classcom.yahoo.processing.rendering.AsynchronousSectionedRenderer<Result>
- Throws:
IOException
-
getEncoding
- Specified by:
getEncoding
in classcom.yahoo.processing.rendering.Renderer<Result>
-
getMimeType
- Specified by:
getMimeType
in classcom.yahoo.processing.rendering.Renderer<Result>
-