Attempt to route an Input
to a Route
route known by this Router.
Attempt to route an Input
to a Route
route known by this Router.
The Input
to use for determining an available route
Some(Route)
if a route is found to match, None
otherwise
A ClosedRouterException will be thrown if close()
has been initiated on this Router and subsequent routing attempts are received.
NonFatal exceptions encountered when calling close()
on a Route
will be
suppressed and Fatal exceptions will take on the same exception behavior of a Future.join
.
Logic used to determine if this Router contains a Route
for an Input
.
Logic used to determine if this Router contains a Route
for an Input
.
The Input
to determine a route for.
Some(Route)
if a matching route is defined, None
if a route destination is
not defined for the Input
.
This method is only meant to be called within the Router's apply
, which
handles lifecycle concerns. It should not be accessed directly.
A label used for identifying this Router (i.e.
A label used for identifying this Router (i.e. for distinguishing between Router instances in error messages or for StatsReceiver scope).
Java-friendly version of apply
All of the Route
routes contained within this Router
All of the Route
routes contained within this Router
This property is used to linearly determine the routes when close()
is called.
It may also be used as a way to determine what routes are defined within a Router
(i.e. for generating meaningful error messages). This property does not imply
any relationship with apply or find or that a Router's runtime behavior
needs to be linear.
Java-friendly version of Router
The Input type used to determine a route destination
The output/resulting route type