|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.processor.idempotent.IdempotentOnCompletion
public class IdempotentOnCompletion
On completion strategy for IdempotentConsumer
.
Constructor Summary | |
---|---|
IdempotentOnCompletion(IdempotentRepository<String> idempotentRepository,
String messageId,
boolean eager,
boolean removeOnFailure)
|
Method Summary | |
---|---|
void |
onComplete(Exchange exchange)
Called when the processing of the message exchange is complete |
protected void |
onCompletedMessage(Exchange exchange,
String messageId)
A strategy method to allow derived classes to overload the behavior of processing a completed message |
protected void |
onFailedMessage(Exchange exchange,
String messageId)
A strategy method to allow derived classes to overload the behavior of processing a failed message |
void |
onFailure(Exchange exchange)
Called when the processing of the message exchange has failed for some reason. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IdempotentOnCompletion(IdempotentRepository<String> idempotentRepository, String messageId, boolean eager, boolean removeOnFailure)
Method Detail |
---|
public void onComplete(Exchange exchange)
Synchronization
onComplete
in interface Synchronization
exchange
- the exchange being processedpublic void onFailure(Exchange exchange)
Synchronization
Exchange.getException()
and
there could be a fault message via Message.isFault()
onFailure
in interface Synchronization
exchange
- the exchange being processedprotected void onCompletedMessage(Exchange exchange, String messageId)
exchange
- the exchangemessageId
- the message ID of this exchangeprotected void onFailedMessage(Exchange exchange, String messageId)
exchange
- the exchangemessageId
- the message ID of this exchangepublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |