Interface ErrorRouteManager<A extends ExchangeContext,B extends ErrorExchange<A>,C extends Routable<A,B,C,D,E>,D extends ErrorRouteManager<A,B,C,D,E>,E extends Route<A,B>>

Type Parameters:
A - the type of the exchange context
B - the type of error exchange handled by the route
C - the routable type
D - the error route manager type
E - the route type
All Superinterfaces:
RouteManager<A,B,C,D,E>
All Known Subinterfaces:
ErrorWebRouteManager<A,B>

public interface ErrorRouteManager<A extends ExchangeContext,B extends ErrorExchange<A>,C extends Routable<A,B,C,D,E>,D extends ErrorRouteManager<A,B,C,D,E>,E extends Route<A,B>> extends RouteManager<A,B,C,D,E>

Base error route manager interface.

An error route manager is used to manage the routes of an error router. It is created by an error router and allows to define, enable, disable, remove and find routes in an error router.

A typical implementation should define methods to set criteria used by the router to match an error exchange to an error route and an error exchange handler that eventually handles the matched error exchange.

Since:
1.3
Author:
Jeremy Kuhn
See Also:
  • Method Details

    • error

      D error(Class<? extends Throwable> error)

      Specifies the type of errors accepted by the route.

      Parameters:
      error - a type of error
      Returns:
      the error route manager
      See Also: