public class DestinationMap extends 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 String |
ANY_CHILD |
protected static String |
ANY_DESCENDENT |
Constructor and Description |
---|
DestinationMap() |
Modifier and Type | Method and Description |
---|---|
DestinationMapEntry |
chooseValue(ActiveMQDestination destination)
Returns the value which matches the given destination or null if there is
no matching value.
|
protected Set |
findWildcardMatches(ActiveMQDestination key) |
protected Set |
findWildcardMatches(ActiveMQDestination key,
boolean deep) |
Set |
get(ActiveMQDestination key)
Looks up the value(s) matching the given Destination key.
|
protected 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() |
boolean |
isEmpty() |
void |
put(ActiveMQDestination key,
Object value) |
void |
remove(ActiveMQDestination key,
Object value)
Removes the value from the associated destination
|
Set |
removeAll(ActiveMQDestination key) |
void |
reset() |
protected void |
setEntries(List<DestinationMapEntry> entries)
A helper method to allow the destination map to be populated from a
dependency injection framework such as Spring
|
static Set |
union(Set existing,
Set candidates) |
Set |
unsynchronizedGet(ActiveMQDestination key) |
void |
unsynchronizedPut(ActiveMQDestination key,
Object value) |
void |
unsynchronizedRemove(ActiveMQDestination key,
Object value) |
protected static final String ANY_DESCENDENT
protected static final String ANY_CHILD
public DestinationMap()
public Set get(ActiveMQDestination key)
key
- the destination to lookuppublic Set unsynchronizedGet(ActiveMQDestination key)
public void put(ActiveMQDestination key, Object value)
public void unsynchronizedPut(ActiveMQDestination key, Object value)
public void remove(ActiveMQDestination key, Object value)
public void unsynchronizedRemove(ActiveMQDestination key, Object value)
public int getTopicRootChildCount()
public int getQueueRootChildCount()
public DestinationMapNode getQueueRootNode()
public DestinationMapNode getTopicRootNode()
public DestinationMapNode getTempQueueRootNode()
public DestinationMapNode getTempTopicRootNode()
protected void setEntries(List<DestinationMapEntry> entries)
protected 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 Set findWildcardMatches(ActiveMQDestination key)
protected Set findWildcardMatches(ActiveMQDestination key, boolean deep)
public Set removeAll(ActiveMQDestination key)
key
- public DestinationMapEntry chooseValue(ActiveMQDestination destination)
destination
- the destination to find the value forprotected DestinationMapNode getRootNode(ActiveMQDestination key)
public void reset()
public boolean isEmpty()
Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.