Package com.swiftmq.ms
Class MessageSelector
- java.lang.Object
-
- com.swiftmq.ms.MessageSelector
-
-
Constructor Summary
Constructors Constructor Description MessageSelector(java.lang.String conditionString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compile()
java.lang.String
getConditionString()
Returns the condition string in SQL92 syntaxboolean
isSelected(MessageImpl message)
Returns true if the message matches the selector criteriajava.lang.String
toString()
-
-
-
Method Detail
-
getConditionString
public java.lang.String getConditionString()
Description copied from interface:Selector
Returns the condition string in SQL92 syntax- Specified by:
getConditionString
in interfaceSelector
- Returns:
- condition string
-
compile
public void compile() throws javax.jms.InvalidSelectorException
- Throws:
javax.jms.InvalidSelectorException
-
isSelected
public boolean isSelected(MessageImpl message)
Description copied from interface:Selector
Returns true if the message matches the selector criteria- Specified by:
isSelected
in interfaceSelector
- Parameters:
message
- the message- Returns:
- true if the message matches
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-