public class KafkaManager extends AbstractManager
AbstractManager.AbstractFactoryData
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TIMEOUT_MILLIS |
count, LOGGER
Constructor and Description |
---|
KafkaManager(LoggerContext loggerContext,
String name,
String topic,
boolean syncSend,
Property[] properties,
String key) |
Modifier and Type | Method and Description |
---|---|
static KafkaManager |
getManager(LoggerContext loggerContext,
String name,
String topic,
boolean syncSend,
Property[] properties,
String key)
Deprecated.
|
String |
getTopic() |
boolean |
releaseSub(long timeout,
TimeUnit timeUnit)
May be overridden by managers to perform processing while the manager is being released and the
lock is held.
|
void |
send(byte[] msg)
Deprecated.
|
void |
send(byte[] msg,
Long eventTimestamp) |
void |
startup() |
close, getContentFormat, getCount, getLoggerContext, getManager, getName, getStrSubstitutor, hasManager, log, logDebug, logError, logger, logWarn, narrow, release, stop, updateData
public static final String DEFAULT_TIMEOUT_MILLIS
public KafkaManager(LoggerContext loggerContext, String name, String topic, boolean syncSend, Property[] properties, String key)
public boolean releaseSub(long timeout, TimeUnit timeUnit)
AbstractManager
releaseSub
in class AbstractManager
timeout
- timeouttimeUnit
- timeout time unit@Deprecated public void send(byte[] msg) throws ExecutionException, InterruptedException, TimeoutException
public void send(byte[] msg, Long eventTimestamp) throws ExecutionException, InterruptedException, TimeoutException
public void startup()
public String getTopic()
@Deprecated public static KafkaManager getManager(LoggerContext loggerContext, String name, String topic, boolean syncSend, Property[] properties, String key)
Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.