|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 triggerMethod 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 Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |