org.jboss.messaging.core
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: 2202 $ $Id: Filter.java 2202 2007-02-08 10:50:26Z timfox $
Author:
Tim Fox, Ovidiu Feodorov

Method Summary
 boolean accept(Message message)
          Tests whether the message should be accepted.
 java.lang.String getFilterString()
           
 

Method Detail

accept

public 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

public java.lang.String getFilterString()


Copyright © 2006 JBoss Inc. All Rights Reserved.