public class DeferredLogstashMarker extends LogstashMarker
LogstashMarker
that defers the creation of another LogstashMarker
until encoding time.
Encoding (and therefore the deferred marker creation) can potentially take place
on another thread if an async appender (e.g. AsyncAppender
or AsyncDisruptorAppender
) is used.
Modifier and Type | Field and Description |
---|---|
static String |
DEFERRED_MARKER_NAME |
MARKER_NAME_PREFIX
Constructor and Description |
---|
DeferredLogstashMarker(Supplier<? extends LogstashMarker> logstashMarkerSupplier) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
void |
writeTo(com.fasterxml.jackson.core.JsonGenerator generator)
Writes the data associated with this marker to the given
JsonGenerator . |
and, with
add, contains, contains, getName, hasChildren, hasReferences, iterator, remove, toString
public static final String DEFERRED_MARKER_NAME
public DeferredLogstashMarker(Supplier<? extends LogstashMarker> logstashMarkerSupplier)
public void writeTo(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
LogstashMarker
JsonGenerator
.writeTo
in class LogstashMarker
generator
- the generator to which to write the output of this marker.IOException
- if there was an error writing to the generatorpublic boolean equals(Object obj)
equals
in interface org.slf4j.Marker
equals
in class LogstashBasicMarker
public int hashCode()
hashCode
in interface org.slf4j.Marker
hashCode
in class LogstashBasicMarker
Copyright © 2019. All rights reserved.