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)
Acknowledge negatively this message.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ack, addMetadata, getAck, getMetadata, of, of, of, of, of, of, of, of, of, unwrap, withAck, withMetadata, withMetadata, withNack, withPayload
public 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)
Message
nack
is used to indicate that the processing of a message failed. The reason is passed as parameter.Copyright © 2018–2021 SmallRye. All rights reserved.