| Constructor and Description | 
|---|
CamelMessage(org.apache.camel.Exchange exchange,
            CamelFailureHandler onNack)  | 
| Modifier and Type | Method and Description | 
|---|---|
org.apache.camel.Exchange | 
getExchange()  | 
Metadata | 
getMetadata()  | 
Function<Throwable,CompletionStage<Void>> | 
getNack()  | 
T | 
getPayload()  | 
T | 
getPayload(Class<T> clazz)  | 
CompletionStage<Void> | 
nack(Throwable reason,
    Metadata metadata)
Acknowledge negatively this message. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitack, addMetadata, getAck, getMetadata, nack, of, of, of, of, of, of, of, of, of, unwrap, withAck, withMetadata, withMetadata, withNack, withPayloadpublic CamelMessage(org.apache.camel.Exchange exchange,
                    CamelFailureHandler onNack)
public T getPayload()
getPayload in interface Message<T>public org.apache.camel.Exchange getExchange()
public Metadata getMetadata()
getMetadata in interface Message<T>public CompletionStage<Void> nack(Throwable reason, Metadata metadata)
Messagenack is used to indicate that the processing of a message failed. The reason is passed as parameter.
 Additional metadata may be provided that the connector can use when nacking the message. The interpretation
 of metadata is connector-specific.nack in interface Message<T>reason - the reason of the nack, must not be nullmetadata - additional nack metadata the connector may use, may be nullCopyright © 2018–2021 SmallRye. All rights reserved.