Class StreamLagJsonWriter
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<StreamLag>
org.nuxeo.ecm.restapi.jaxrs.io.management.StreamLagJsonWriter
- All Implemented Interfaces:
Marshaller<StreamLag>,Writer<StreamLag>
@Setup(mode=SINGLETON,
priority=2000)
public class StreamLagJsonWriter
extends AbstractJsonWriter<StreamLag>
- Since:
- 2025.12
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
accept, getGenerator, write, writeEntity, writeEntity, writeEntityField, writeSerializable, writeSerializableField, writeSerializableListField, writeSerializableMapField
-
Constructor Details
-
StreamLagJsonWriter
public StreamLagJsonWriter()
-
-
Method Details
-
write
Description copied from class:AbstractJsonWriterImplement this method to writes the entity in the providedJsonGenerator.This method implementation can use injected properties.
The
JsonGenerator's flushing is done by this abstract class, it's also not not necessary to flush it. Do not close the providedJsonGenerator. It may be used is another marshaller calling this one.- Specified by:
writein classAbstractJsonWriter<StreamLag>- Parameters:
entity- The entity to marshall as Json.jg- TheJsonGeneratorused to produce Json output.- Throws:
IOException
-