public final class DE4AKafkaClient extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
close()
Shutdown at the end.
|
static void |
send(com.helger.commons.error.level.IErrorLevel aErrorLevel,
String sValue)
Send a message, if it is enabled.
|
static void |
send(com.helger.commons.error.level.IErrorLevel aErrorLevel,
Supplier<String> aValue)
Send a message, if it is enabled.
|
static void |
send(com.helger.commons.error.level.IErrorLevel aErrorLevel,
Supplier<String> aValue,
Throwable t)
Send a message, if it is enabled.
|
public static void send(@Nullable com.helger.commons.error.level.IErrorLevel aErrorLevel, @Nonnull String sValue)
aErrorLevel - Error level to log the message. May be null to not log
it.sValue - Value to send. May not be null.DE4AKafkaSettings.isKafkaEnabled()public static void send(@Nullable com.helger.commons.error.level.IErrorLevel aErrorLevel, @Nonnull Supplier<String> aValue)
aErrorLevel - Error level to log the message. May be null to not log
it.aValue - Value supplier to send. Is only evaluated if enabled. May not be
null.DE4AKafkaSettings.isKafkaEnabled()public static void send(@Nullable com.helger.commons.error.level.IErrorLevel aErrorLevel, @Nonnull Supplier<String> aValue, @Nullable Throwable t)
aErrorLevel - Error level to log the message. May be null to not log
it.aValue - Value supplier to send. Is only evaluated if enabled. May not be
null.t - Exception to be logged. May be null.DE4AKafkaSettings.isKafkaEnabled()public static void close()
DE4AKafkaSettings.isKafkaEnabled()Copyright © 2021–2022 de4a. All rights reserved.