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 Throwable
getException()
org.apache.camel.spi.RouteError.Phase
getPhase()
boolean
isUnhealthy()
static void
reset(org.apache.camel.CamelContext context, String routeId)
static void
set(org.apache.camel.CamelContext context, String routeId, org.apache.camel.spi.RouteError.Phase phase, Throwable throwable)
static void
set(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:
getPhase
in interfaceorg.apache.camel.spi.RouteError
-
getException
public Throwable getException()
- Specified by:
getException
in interfaceorg.apache.camel.spi.RouteError
-
isUnhealthy
public boolean isUnhealthy()
- Specified by:
isUnhealthy
in 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)
-
-