Class FilterImpl
- java.lang.Object
-
- org.apache.activemq.artemis.core.filter.impl.FilterImpl
-
- All Implemented Interfaces:
Filter
public class FilterImpl extends Object implements 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 message AMQTimestamp - the timestamp of the message AMQDurable - "DURABLE" or "NON_DURABLE" AMQExpiration - the expiration of the message AMQSize - the encoded size of the full message in bytes AMQUserID - the user specified ID string (if any) Any other identifiers that appear in a filter expression represent header values for the message String values must be set asSimpleString, notjava.lang.String(see JBMESSAGING-1307). Derived from JBoss MQ version by
-
-
Field Summary
-
Fields inherited from interface org.apache.activemq.artemis.core.filter.Filter
GENERIC_IGNORED_FILTER
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FiltercreateFilter(String filterStr)static FiltercreateFilter(SimpleString filterStr)booleanequals(Object obj)SimpleStringgetFilterString()inthashCode()booleanmatch(Map<String,String> map)booleanmatch(Message message)booleanmatch(Filterable filterable)StringtoString()
-
-
-
Method Detail
-
createFilter
public static Filter createFilter(String filterStr) throws ActiveMQException
- 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
public static Filter createFilter(SimpleString filterStr) throws ActiveMQException
- 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
public SimpleString getFilterString()
- Specified by:
getFilterStringin interfaceFilter
-
match
public boolean match(Filterable filterable)
-
-