Package com.yahoo.messagebus.routing
Class RouteDirective
java.lang.Object
com.yahoo.messagebus.routing.RouteDirective
- All Implemented Interfaces:
HopDirective
This class represents a route directive within a
Hop's selector. This will be replaced by the named route
when evaluated. If the route is not present in the running protocol's routing table, routing will fail.- Author:
- Simon Thoresen Hult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Returns the name of the route to insert.inthashCode()booleanmatches(HopDirective dir) Returns true if this directive matches another.Returns a string representation of this that can be debugged but not parsed.toString()
-
Constructor Details
-
RouteDirective
Constructs a new directive to insert a route.- Parameters:
name- The name of the route to insert.
-
-
Method Details
-
matches
Description copied from interface:HopDirectiveReturns true if this directive matches another.- Specified by:
matchesin interfaceHopDirective- Parameters:
dir- The directive to compare this to.- Returns:
- True if this matches the argument.
-
getName
Returns the name of the route to insert.- Returns:
- The route name.
-
equals
-
toString
-
toDebugString
Description copied from interface:HopDirectiveReturns a string representation of this that can be debugged but not parsed.- Specified by:
toDebugStringin interfaceHopDirective- Returns:
- The debug string.
-
hashCode
public int hashCode()
-