Class KafkaManager
java.lang.Object
org.apache.logging.log4j.core.appender.AbstractManager
org.apache.logging.log4j.core.appender.mom.kafka.KafkaManager
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.logging.log4j.core.appender.AbstractManager
AbstractManager.AbstractFactoryData
-
Field Summary
Fields inherited from class org.apache.logging.log4j.core.appender.AbstractManager
count, LOGGER
-
Constructor Summary
ConstructorDescriptionKafkaManager
(LoggerContext loggerContext, String name, String topic, boolean syncSend, Property[] properties, String key) -
Method Summary
Modifier and TypeMethodDescriptionstatic KafkaManager
getManager
(LoggerContext loggerContext, String name, String topic, boolean syncSend, Property[] properties, String key) Deprecated.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
void
startup()
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractManager
close, getContentFormat, getCount, getLoggerContext, getManager, getName, getStrSubstitutor, hasManager, log, logDebug, logError, logger, logWarn, narrow, release, stop, updateData
-
Field Details
-
DEFAULT_TIMEOUT_MILLIS
- See Also:
-
-
Constructor Details
-
KafkaManager
public KafkaManager(LoggerContext loggerContext, String name, String topic, boolean syncSend, Property[] properties, String key)
-
-
Method Details
-
releaseSub
Description copied from class:AbstractManager
May be overridden by managers to perform processing while the manager is being released and the lock is held. A timeout is passed for implementors to use as they see fit.- Overrides:
releaseSub
in classAbstractManager
- Parameters:
timeout
- timeouttimeUnit
- timeout time unit- Returns:
- true if all resources were closed normally, false otherwise.
-
send
@Deprecated public void send(byte[] msg) throws ExecutionException, InterruptedException, TimeoutException Deprecated. -
send
public void send(byte[] msg, Long eventTimestamp) throws ExecutionException, InterruptedException, TimeoutException -
startup
public void startup() -
getTopic
-
getManager
@Deprecated public static KafkaManager getManager(LoggerContext loggerContext, String name, String topic, boolean syncSend, Property[] properties, String key) Deprecated.
-