public class DestinationMap extends java.lang.Object
ActiveMQDestination
and retrieved by destination - supporting both *
and > style of wildcard as well as composite destinations. Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ANY_CHILD |
protected static java.lang.String |
ANY_DESCENDENT |
Constructor and Description |
---|
DestinationMap() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
chooseValue(ActiveMQDestination destination)
Returns the value which matches the given destination or null if there is
no matching value.
|
protected java.util.Set |
findWildcardMatches(ActiveMQDestination key) |
java.util.Set |
get(ActiveMQDestination key)
Looks up the value(s) matching the given Destination key.
|
protected java.lang.Class<? extends DestinationMapEntry> |
getEntryClass()
Returns the type of the allowed entries which can be set via the
setEntries(List) method. |
int |
getQueueRootChildCount() |
DestinationMapNode |
getQueueRootNode() |
protected DestinationMapNode |
getRootNode(ActiveMQDestination key)
Returns the root node for the given destination type
|
DestinationMapNode |
getTempQueueRootNode() |
DestinationMapNode |
getTempTopicRootNode() |
int |
getTopicRootChildCount() |
DestinationMapNode |
getTopicRootNode() |
void |
put(ActiveMQDestination key,
java.lang.Object value) |
void |
remove(ActiveMQDestination key,
java.lang.Object value)
Removes the value from the associated destination
|
java.util.Set |
removeAll(ActiveMQDestination key) |
void |
reset() |
protected void |
setEntries(java.util.List<DestinationMapEntry> entries)
A helper method to allow the destination map to be populated from a
dependency injection framework such as Spring
|
static java.util.Set |
union(java.util.Set existing,
java.util.Set candidates) |
protected static final java.lang.String ANY_DESCENDENT
protected static final java.lang.String ANY_CHILD
public DestinationMap()
public java.util.Set get(ActiveMQDestination key)
key
- the destination to lookuppublic void put(ActiveMQDestination key, java.lang.Object value)
public void remove(ActiveMQDestination key, java.lang.Object value)
public int getTopicRootChildCount()
public int getQueueRootChildCount()
public DestinationMapNode getQueueRootNode()
public DestinationMapNode getTopicRootNode()
public DestinationMapNode getTempQueueRootNode()
public DestinationMapNode getTempTopicRootNode()
protected void setEntries(java.util.List<DestinationMapEntry> entries)
protected java.lang.Class<? extends DestinationMapEntry> getEntryClass()
setEntries(List)
method. This allows derived classes to further
restrict the type of allowed entries to make a type safe destination map
for custom policies.protected java.util.Set findWildcardMatches(ActiveMQDestination key)
public java.util.Set removeAll(ActiveMQDestination key)
key
- public java.lang.Object chooseValue(ActiveMQDestination destination)
destination
- the destination to find the value forprotected DestinationMapNode getRootNode(ActiveMQDestination key)
public void reset()
public static java.util.Set union(java.util.Set existing, java.util.Set candidates)
Copyright © 2005-2017. All Rights Reserved.