Package com.yahoo.messagebus.routing
Class VerbatimDirective
java.lang.Object
com.yahoo.messagebus.routing.VerbatimDirective
- All Implemented Interfaces:
HopDirective
This class represents a verbatim match within a
Hop's selector. This is nothing more than a string that will
be used as-is when performing service name lookups.- Author:
- Simon Thoresen Hult
-
Constructor Summary
ConstructorsConstructorDescriptionVerbatimDirective(String image) Constructs a new verbatim selector item for a given image. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetImage()Returns the image to which this is a verbatim match.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
-
VerbatimDirective
Constructs a new verbatim selector item for a given image.- Parameters:
image- The image to assign to this.
-
-
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.
-
getImage
Returns the image to which this is a verbatim match.- Returns:
- The image.
-
equals
-
hashCode
public int hashCode() -
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.
-