public class DefaultRouteError extends Object implements org.apache.camel.spi.RouteError
Constructor and Description |
---|
DefaultRouteError(org.apache.camel.spi.RouteError.Phase phase,
Throwable throwable) |
DefaultRouteError(org.apache.camel.spi.RouteError.Phase phase,
Throwable throwable,
boolean unhealthy) |
Modifier and Type | Method and 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) |
public DefaultRouteError(org.apache.camel.spi.RouteError.Phase phase, Throwable throwable)
public DefaultRouteError(org.apache.camel.spi.RouteError.Phase phase, Throwable throwable, boolean unhealthy)
public org.apache.camel.spi.RouteError.Phase getPhase()
getPhase
in interface org.apache.camel.spi.RouteError
public Throwable getException()
getException
in interface org.apache.camel.spi.RouteError
public boolean isUnhealthy()
isUnhealthy
in interface org.apache.camel.spi.RouteError
public static void set(org.apache.camel.CamelContext context, String routeId, org.apache.camel.spi.RouteError.Phase phase, Throwable throwable)
public static void set(org.apache.camel.CamelContext context, String routeId, org.apache.camel.spi.RouteError.Phase phase, Throwable throwable, boolean unhealthy)
public static void reset(org.apache.camel.CamelContext context, String routeId)
Apache Camel