Class FilterImpl
java.lang.Object
org.apache.activemq.artemis.core.filter.impl.FilterImpl
- All Implemented Interfaces:
Filter
This class implements an ActiveMQ Artemis filter
ActiveMQ Artemis filters have the same syntax as JMS 1.1 selectors, but the identifiers are different.
Valid identifiers that can be used are:
AMQPriority- the priority of the messageAMQTimestamp- the timestamp of the messageAMQDurable- "DURABLE" or "NON_DURABLE"AMQExpiration- the expiration of the messageAMQSize- the encoded size of the full message in bytesAMQUserID- the user specified ID string (if any)- Any other identifiers that appear in a filter expression represent header values for the message
SimpleString, not java.lang.String-
Field Summary
Fields inherited from interface org.apache.activemq.artemis.core.filter.Filter
GENERIC_IGNORED_FILTER -
Method Summary
Modifier and TypeMethodDescriptionstatic FiltercreateFilter(String filterStr) Returns null iffilterStris null or an empty String and a valid filter else.static FiltercreateFilter(SimpleString filterStr) Returns null iffilterStris null or an empty String and a valid filter else.booleaninthashCode()booleanbooleanbooleanmatch(Filterable filterable) toString()
-
Method Details
-
createFilter
Returns null iffilterStris null or an empty String and a valid filter else.- Returns:
- null if
filterStris null or an empty String and a valid filter else - Throws:
ActiveMQException- if the string does not correspond to a valid filter
-
createFilter
Returns null iffilterStris null or an empty String and a valid filter else.- Returns:
- null if
filterStris null or an empty String and a valid filter else - Throws:
ActiveMQException- if the string does not correspond to a valid filter
-
getFilterString
- Specified by:
getFilterStringin interfaceFilter
-
match
-
match
-
match
-
hashCode
public int hashCode() -
equals
-
toString
-