public class ProducerWorker<K,V>
extends java.lang.Thread
| Constructor and Description |
|---|
ProducerWorker(io.axual.common.config.ClientConfig clientConfig,
BaseProducerConfig producerConfig) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.Future<ProducedMessage<K,V>> |
queueJob(ProduceJob<K,V> produceJob)
Puts a ProduceJob on the message queue.
|
void |
run() |
void |
start() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yieldpublic ProducerWorker(io.axual.common.config.ClientConfig clientConfig,
BaseProducerConfig producerConfig)
public void start()
start in class java.lang.Threadpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic java.util.concurrent.Future<ProducedMessage<K,V>> queueJob(ProduceJob<K,V> produceJob)
produceJob - the message tracker containing the message key, value and callback data.Copyright © 2020–2021 Axual B.V.. All rights reserved.