|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.processor.exceptionpolicy.ExceptionPolicyKey
public final class ExceptionPolicyKey
Exception policy key is a compound key for storing: route id + exception class + when => exception type.
This is used by Camel to store the onException types configured that has or has not predicates attached (when).
| Constructor Summary | |
|---|---|
ExceptionPolicyKey(Class<? extends Throwable> exceptionClass,
WhenDefinition when)
Deprecated. will be removed in the near future, use the other constructor |
|
ExceptionPolicyKey(String routeId,
Class<? extends Throwable> exceptionClass,
WhenDefinition when)
Key for exception clause |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
Class<?> |
getExceptionClass()
|
String |
getRouteId()
|
WhenDefinition |
getWhen()
|
int |
hashCode()
|
static ExceptionPolicyKey |
newInstance(Class<? extends Throwable> exceptionClass)
Deprecated. will be removed in the near future. Use the constructor instead. |
static ExceptionPolicyKey |
newInstance(Class<? extends Throwable> exceptionClass,
WhenDefinition when)
Deprecated. will be removed in the near future. Use the constructor instead. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated
public ExceptionPolicyKey(Class<? extends Throwable> exceptionClass,
WhenDefinition when)
public ExceptionPolicyKey(String routeId,
Class<? extends Throwable> exceptionClass,
WhenDefinition when)
routeId - the route, or use null for a global scopedexceptionClass - the exception classwhen - optional predicate when the exception clause should trigger| Method Detail |
|---|
public Class<?> getExceptionClass()
public WhenDefinition getWhen()
public String getRouteId()
@Deprecated public static ExceptionPolicyKey newInstance(Class<? extends Throwable> exceptionClass)
@Deprecated
public static ExceptionPolicyKey newInstance(Class<? extends Throwable> exceptionClass,
WhenDefinition when)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||