public class ProduceJob<K,V>
extends java.lang.Object
| Constructor and Description |
|---|
ProduceJob(ProducerMessage<K,V> message,
ProduceCallback<K,V> produceCallback) |
| Modifier and Type | Method and Description |
|---|---|
void |
completeProduce(java.lang.String message,
java.lang.Throwable cause)
Helper method to send the completion to both the future and the callback.
|
void |
completeProduce(java.lang.Throwable cause)
Helper method to send the completion to both the future and the callback.
|
ProduceFuture<K,V> |
execute(ProducerProxy<K,V> producer) |
ProduceFuture<K,V> |
getFuture() |
ProducerMessage<K,V> |
getMessage() |
public ProduceJob(ProducerMessage<K,V> message, ProduceCallback<K,V> produceCallback)
public ProduceFuture<K,V> execute(ProducerProxy<K,V> producer)
public ProduceFuture<K,V> getFuture()
public ProducerMessage<K,V> getMessage()
public void completeProduce(java.lang.Throwable cause)
ExecutionExceptioncause - the Throwable which caused the message produce to failpublic void completeProduce(java.lang.String message,
java.lang.Throwable cause)
ExecutionExceptionmessage - the message which will be used for the wrapped exceptioncause - the Throwable which caused the message produce to failCopyright © 2020–2021 Axual B.V.. All rights reserved.