KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ubermq > jms > common > routing > Selector


1 package com.ubermq.jms.common.routing;
2
3 import com.ubermq.jms.common.datagram.IMessageDatagram;
4
5 /**
6  * Represents a message selector that has a boolean veto whether
7  * a message should be delivered to a particular location.
8  */

9 public interface Selector
10 {
11     /**
12      * Indicates if a message datagram should be delivered.
13      * @return true if the message should be delievered,
14      * false if not.
15      */

16     public boolean accept(IMessageDatagram msg);
17 }
18
Popular Tags