Package com.swiftmq.ms.artemis
Class MessageSelector
- java.lang.Object
-
- com.swiftmq.ms.artemis.MessageSelector
-
- All Implemented Interfaces:
Filterable,Selector
public class MessageSelector extends java.lang.Object implements Selector, Filterable
-
-
Constructor Summary
Constructors Constructor Description MessageSelector(java.lang.String conditionString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompile()<T> TgetBodyAs(java.lang.Class<T> aClass)This method is used by message filters which do content based routing (Like the XPath based selectors).java.lang.StringgetConditionString()Returns the condition string in SQL92 syntaxjava.lang.ObjectgetLocalConnectionId()Used by the NoLocal filter.java.lang.ObjectgetProperty(SimpleString simpleString)Extracts the named message propertybooleanisSelected(MessageImpl message)Returns true if the message matches the selector criteria
-
-
-
Method Detail
-
getConditionString
public java.lang.String getConditionString()
Description copied from interface:SelectorReturns the condition string in SQL92 syntax- Specified by:
getConditionStringin interfaceSelector- Returns:
- condition string
-
compile
public void compile() throws jakarta.jms.InvalidSelectorException- Throws:
jakarta.jms.InvalidSelectorException
-
isSelected
public boolean isSelected(MessageImpl message)
Description copied from interface:SelectorReturns true if the message matches the selector criteria- Specified by:
isSelectedin interfaceSelector- Parameters:
message- the message- Returns:
- true if the message matches
-
getBodyAs
public <T> T getBodyAs(java.lang.Class<T> aClass) throws FilterExceptionDescription copied from interface:FilterableThis method is used by message filters which do content based routing (Like the XPath based selectors).- Specified by:
getBodyAsin interfaceFilterable- Returns:
- Throws:
FilterException
-
getProperty
public java.lang.Object getProperty(SimpleString simpleString)
Description copied from interface:FilterableExtracts the named message property- Specified by:
getPropertyin interfaceFilterable- Returns:
-
getLocalConnectionId
public java.lang.Object getLocalConnectionId()
Description copied from interface:FilterableUsed by the NoLocal filter.- Specified by:
getLocalConnectionIdin interfaceFilterable- Returns:
- a unique id for the connection that produced the message.
-
-