public class IdempotentOnCompletion extends Object implements org.apache.camel.spi.Synchronization
IdempotentConsumer
.
This strategy adds the message id to the idempotent repository in cast the exchange
was processed successfully. In case of failure the message id is not added.Constructor and Description |
---|
IdempotentOnCompletion(org.apache.camel.spi.IdempotentRepository idempotentRepository,
String messageId,
boolean eager,
boolean removeOnFailure) |
Modifier and Type | Method and Description |
---|---|
void |
onComplete(org.apache.camel.Exchange exchange) |
protected void |
onCompletedMessage(org.apache.camel.Exchange exchange,
String messageId)
A strategy method to allow derived classes to overload the behavior of
processing a completed message
|
protected void |
onFailedMessage(org.apache.camel.Exchange exchange,
String messageId)
A strategy method to allow derived classes to overload the behavior of
processing a failed message
|
void |
onFailure(org.apache.camel.Exchange exchange) |
String |
toString() |
public IdempotentOnCompletion(org.apache.camel.spi.IdempotentRepository idempotentRepository, String messageId, boolean eager, boolean removeOnFailure)
public void onComplete(org.apache.camel.Exchange exchange)
onComplete
in interface org.apache.camel.spi.Synchronization
public void onFailure(org.apache.camel.Exchange exchange)
onFailure
in interface org.apache.camel.spi.Synchronization
protected void onCompletedMessage(org.apache.camel.Exchange exchange, String messageId)
exchange
- the exchangemessageId
- the message ID of this exchangeprotected void onFailedMessage(org.apache.camel.Exchange exchange, String messageId)
exchange
- the exchangemessageId
- the message ID of this exchangeApache Camel