Package org.apache.camel.impl.engine
Class DefaultRouteError
- java.lang.Object
-
- org.apache.camel.impl.engine.DefaultRouteError
-
- All Implemented Interfaces:
org.apache.camel.spi.RouteError
public class DefaultRouteError extends Object implements org.apache.camel.spi.RouteError
-
-
Constructor Summary
Constructors Constructor Description DefaultRouteError(org.apache.camel.spi.RouteError.Phase phase, Throwable throwable)DefaultRouteError(org.apache.camel.spi.RouteError.Phase phase, Throwable throwable, boolean unhealthy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrowablegetException()org.apache.camel.spi.RouteError.PhasegetPhase()booleanisUnhealthy()static voidreset(org.apache.camel.CamelContext context, String routeId)static voidset(org.apache.camel.CamelContext context, String routeId, org.apache.camel.spi.RouteError.Phase phase, Throwable throwable)static voidset(org.apache.camel.CamelContext context, String routeId, org.apache.camel.spi.RouteError.Phase phase, Throwable throwable, boolean unhealthy)
-
-
-
Method Detail
-
getPhase
public org.apache.camel.spi.RouteError.Phase getPhase()
- Specified by:
getPhasein interfaceorg.apache.camel.spi.RouteError
-
getException
public Throwable getException()
- Specified by:
getExceptionin interfaceorg.apache.camel.spi.RouteError
-
isUnhealthy
public boolean isUnhealthy()
- Specified by:
isUnhealthyin interfaceorg.apache.camel.spi.RouteError
-
set
public static void set(org.apache.camel.CamelContext context, String routeId, org.apache.camel.spi.RouteError.Phase phase, Throwable throwable)
-
set
public static void set(org.apache.camel.CamelContext context, String routeId, org.apache.camel.spi.RouteError.Phase phase, Throwable throwable, boolean unhealthy)
-
reset
public static void reset(org.apache.camel.CamelContext context, String routeId)
-
-