org.jboss.messaging.core.contract
Interface Filter
- All Known Implementing Classes:
- Selector
public interface Filter
A filter encapsulates the logic of whether to accept a message or not. Filters are used when
browsing to restrict the messages browsed, or when routing messages.
- Version:
- $Revision: 2868 $
$Id: Filter.java 2868 2007-07-10 20:22:16Z timfox $
- Author:
- Tim Fox, Ovidiu Feodorov
accept
boolean accept(Message message)
- Tests whether the message should be accepted.
- Returns:
- true if the Filter accepts the message - i.e. let's it pass.
getFilterString
java.lang.String getFilterString()
Copyright © 2006 JBoss Inc. All Rights Reserved.