public abstract class CompositeJsonLayout<Event extends DeferredProcessingAware> extends LayoutBase<Event>
startedcontext| Constructor and Description |
|---|
CompositeJsonLayout() |
getContentType, getContext, getFileFooter, getFileHeader, getPresentationFooter, getPresentationHeader, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeaderaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManagerprotected abstract AbstractCompositeJsonFormatter<Event> createFormatter()
public void start()
start in interface LifeCyclestart in class LayoutBase<Event extends DeferredProcessingAware>public void stop()
stop in interface LifeCyclestop in class LayoutBase<Event extends DeferredProcessingAware>public JsonProviders<Event> getProviders()
public void setProviders(JsonProviders<Event> jsonProviders)
public boolean isImmediateFlush()
public void setImmediateFlush(boolean immediateFlush)
public JsonFactoryDecorator getJsonFactoryDecorator()
public void setJsonFactoryDecorator(JsonFactoryDecorator jsonFactoryDecorator)
public JsonGeneratorDecorator getJsonGeneratorDecorator()
public void setJsonGeneratorDecorator(JsonGeneratorDecorator jsonGeneratorDecorator)
public void setFindAndRegisterJacksonModules(boolean findAndRegisterJacksonModules)
protected AbstractCompositeJsonFormatter<Event> getFormatter()
public String getLineSeparator()
public void setLineSeparator(String lineSeparator)
null or empty string = no new line. (default)SYSTEM" = operating system new line.UNIX" = unix line ending (\n).WINDOWS" = windows line ending (\r\n).lineSeparator - the separator formatpublic int getMinBufferSize()
public void setMinBufferSize(int minBufferSize)
The buffer automatically grows above the #minBufferSize when needed to
accommodate with larger events. However, only the first minBufferSize bytes
will be reused by subsequent invocations. It is therefore strongly advised to set
the minimum size at least equal to the average size of the encoded events to reduce
unnecessary memory allocations and reduce pressure on the garbage collector.
Note: changes to the buffer size will not be taken into account after the encoder is started.
minBufferSize - the minimum buffer size (in bytes)Copyright © 2013–2021. All rights reserved.