Class MessageSelector

  • All Implemented Interfaces:
    Selector

    public class MessageSelector
    extends java.lang.Object
    implements Selector
    • 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 syntax
      boolean isSelected​(MessageImpl message)
      Returns true if the message matches the selector criteria
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MessageSelector

        public MessageSelector​(java.lang.String conditionString)
    • Method Detail

      • getConditionString

        public java.lang.String getConditionString()
        Description copied from interface: Selector
        Returns the condition string in SQL92 syntax
        Specified by:
        getConditionString in interface Selector
        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 interface Selector
        Parameters:
        message - the message
        Returns:
        true if the message matches
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object