AsynchronousDeliveryStrategy instead.@Deprecated public class BlockingDeliveryStrategy extends ch.qos.logback.core.spi.ContextAwareBase implements DeliveryStrategy
setTimeout(long)| Constructor and Description |
|---|
BlockingDeliveryStrategy()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getTimeout()
Deprecated.
|
<K,V,E> boolean |
send(org.apache.kafka.clients.producer.Producer<K,V> producer,
org.apache.kafka.clients.producer.ProducerRecord<K,V> record,
E event,
FailedDeliveryCallback<E> failureCallback)
Deprecated.
Sends a message to a kafka producer and somehow deals with failures.
|
void |
setTimeout(long timeout)
Deprecated.
Sets the timeout for waits on full consumers.
|
public <K,V,E> boolean send(org.apache.kafka.clients.producer.Producer<K,V> producer,
org.apache.kafka.clients.producer.ProducerRecord<K,V> record,
E event,
FailedDeliveryCallback<E> failureCallback)
DeliveryStrategysend in interface DeliveryStrategyK - the key type of a persisted log message.V - the value type of a persisted log message.E - the type of the logging event.producer - the backing kafka producerrecord - the prepared kafka message (ready to ship)event - the originating logging eventfailureCallback - a callback that handles messages that could not be delivered with best-effort.true if the message could be sent successfully, false otherwise.public long getTimeout()
public void setTimeout(long timeout)
timeout > 0: Wait for timeout millisecondstimeout == 0: Wait infinitely
timeout - a timeout in TimeUnit.MILLISECONDS.Copyright © 2015–2018. All rights reserved.