@Target(value=METHOD) @Retention(value=SOURCE) public @interface Handle
Handler class
should be called when the component is invoked
The @Handle method can return two results:
RECONNECT - Retry the operation if the Processor has ReconnectOn, and the Handle throws an exception of that kind.
FAIL - Fail the operation by throwing an exception that does not belongs to the ReconnectOn, or the processors don't support reconnection.
Note: If a method annotated with Handle does not throw an exception during its execution, the original exception are re-thrown.
The Handle method :
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.