org.codehaus.activemq.filter
Class NoLocalFilter

java.lang.Object
  extended byorg.codehaus.activemq.filter.NoLocalFilter
All Implemented Interfaces:
Filter

public class NoLocalFilter
extends Object
implements Filter

Checks that messages are not filtered by NoLocal

Version:
$Revision: 1.1 $

Constructor Summary
NoLocalFilter(String newClientId)
          Construct a NoLocalFilter
 
Method Summary
 boolean isWildcard()
           
 boolean matches(Message message)
          ensure messages are filtered if they have the same clientId as the filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoLocalFilter

public NoLocalFilter(String newClientId)
Construct a NoLocalFilter

Parameters:
newClientId -
Method Detail

matches

public boolean matches(Message message)
                throws JMSException
ensure messages are filtered if they have the same clientId as the filter

Specified by:
matches in interface Filter
Parameters:
message - - the message to match
Returns:
true if the message has a different clientId to the filter
Throws:
JMSException

isWildcard

public boolean isWildcard()
Specified by:
isWildcard in interface Filter
Returns:
return true if this filter is a wildcard filter and so can match multiple destinations


Copyright © 2004-2005 Protique, Ltd.. All Rights Reserved.