Class SseRenderer
java.lang.Object
org.nuxeo.lib.stream.tools.renderer.Renderer
org.nuxeo.ecm.restapi.server.jaxrs.management.SseRenderer
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Consumer<LogRecord<Record>>
- Since:
- 2021.22
-
Field Summary
Modifier and TypeFieldDescriptionprotected final javax.servlet.http.HttpServletResponse
protected final AvroSchemaStore
protected final PrintWriter
Fields inherited from class org.nuxeo.lib.stream.tools.renderer.Renderer
AVRO_MESSAGE_V1_HEADER, dataSize
-
Constructor Summary
-
Method Summary
Methods inherited from class org.nuxeo.lib.stream.tools.renderer.Renderer
getFingerPrint, isAvroMessage, renderAvroMessage, tryToRenderAvroData
-
Field Details
-
writer
-
schemaStore
-
response
protected final javax.servlet.http.HttpServletResponse response
-
-
Constructor Details
-
SseRenderer
- Throws:
IOException
-
-
Method Details
-
accept
-
asValidJson
-
flush
- Throws:
IOException
-
writeJson
-
watermarkString
- Overrides:
watermarkString
in classRenderer
-
header
public void header() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-