@Target(value={METHOD,TYPE}) @Retention(value=SOURCE) @Documented public @interface ReconnectOn
Connector annotation)
or at a method level (annotated with Processor/Source) . If the Connector or Processor throws an exception of this class, ReconnectOn
automatically invalidates the connection. ReconnectOn receives a list containing the classes of the exceptions to be caught
(see below for an example). When an exception occurs, ReconnectOn's behavior is based on the configured reconnection strategy.
Used to invalidate connections. You can attach this annotation to any method annotated with Processor/Source.
If the Processor or Source throws an exception that matches any of the exceptions specified in the ReconnectOn annotation,
the connection is invalidated| Modifier and Type | Required Element and Description |
|---|---|
Class<? extends Exception>[] |
exceptions |
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.