THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- begin
void begin(Consumer consumer, Endpoint endpoint)
- begin (Camel 2.3)
boolean begin(Consumer consumer, Endpoint endpoint)
- commit
void commit(Consumer consumer, Endpoint endpoint)
- rollback
boolean rollback(Consumer consumer, Endpoint endpoint, int retryCounter, Exception e) throws Exception
In Camel 2.3 onwards the begin method returns a boolean which indicates whether or not to skipping polling. So you can implement your custom logic and return false
if you do not want to poll this time.
The most interesting is the rollback
as it allows you do handle the caused exception and decide what to do.
...