|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activemq.filter.DestinationMap
public class DestinationMap
A Map-like data structure allowing values to be indexed by ActiveMQDestination
and retrieved by destination - supporting both * and > style of wildcard
as well as composite destinations.
This class assumes that the index changes rarely but that fast lookup into the index is required.
So this class maintains a pre-calculated index for destination steps. So looking up the values
for "TEST.*" or "*.TEST" will be pretty fast.
Looking up of a value could return a single value or a List of matching values if a wildcard or
composite destination is used.
Field Summary | |
---|---|
protected static String |
ANY_CHILD
|
protected static String |
ANY_DESCENDENT
|
Constructor Summary | |
---|---|
DestinationMap()
|
Method Summary | |
---|---|
protected Set |
findWildcardMatches(ActiveMQDestination key)
|
Set |
get(ActiveMQDestination key)
Looks up the value(s) matching the given Destination key. |
void |
put(ActiveMQDestination key,
Object value)
add destination to the map |
void |
remove(ActiveMQDestination key,
Object value)
Removes the value from the associated destination |
void |
removeAll(ActiveMQDestination key)
remove all destinations associated with a key |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String ANY_DESCENDENT
protected static final String ANY_CHILD
Constructor Detail |
---|
public DestinationMap()
Method Detail |
---|
public Set get(ActiveMQDestination key)
key
- the destination to lookup
public void put(ActiveMQDestination key, Object value)
key
- value
- public void remove(ActiveMQDestination key, Object value)
key
- value
- protected Set findWildcardMatches(ActiveMQDestination key)
public void removeAll(ActiveMQDestination key)
key
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |