public abstract class AbstractElasticsearchPublisher<T> extends Object implements Runnable
| Modifier and Type | Field and Description |
|---|---|
protected Settings |
settings |
static String |
THREAD_NAME_PREFIX |
| Constructor and Description |
|---|
AbstractElasticsearchPublisher(ch.qos.logback.core.Context context,
ErrorReporter errorReporter,
Settings settings,
ElasticsearchProperties properties,
HttpRequestHeaders headers) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(T event) |
protected abstract AbstractPropertyAndEncoder<T> |
buildPropertyAndEncoder(ch.qos.logback.core.Context context,
Property property) |
protected static String |
getTimestamp(long timestamp) |
void |
run() |
protected abstract void |
serializeCommonFields(com.fasterxml.jackson.core.JsonGenerator gen,
T event) |
public static final String THREAD_NAME_PREFIX
protected Settings settings
public AbstractElasticsearchPublisher(ch.qos.logback.core.Context context,
ErrorReporter errorReporter,
Settings settings,
ElasticsearchProperties properties,
HttpRequestHeaders headers)
throws IOException
IOExceptionprotected abstract AbstractPropertyAndEncoder<T> buildPropertyAndEncoder(ch.qos.logback.core.Context context, Property property)
public void addEvent(T event)
protected abstract void serializeCommonFields(com.fasterxml.jackson.core.JsonGenerator gen,
T event)
throws IOException
IOExceptionprotected static String getTimestamp(long timestamp)
Copyright © 2022 Perfana. All rights reserved.