org.apache.activemq.broker.region.policy
Class RedeliveryPolicyMap

java.lang.Object
  extended by org.apache.activemq.filter.DestinationMap
      extended by org.apache.activemq.broker.region.policy.RedeliveryPolicyMap

public class RedeliveryPolicyMap
extends DestinationMap

Represents a destination based configuration of policies so that individual destinations or wildcard hierarchies of destinations can be configured using different policies.


Field Summary
 
Fields inherited from class org.apache.activemq.filter.DestinationMap
ANY_CHILD, ANY_DESCENDENT
 
Constructor Summary
RedeliveryPolicyMap()
           
 
Method Summary
 RedeliveryPolicy getDefaultEntry()
           
protected  Class<? extends DestinationMapEntry> getEntryClass()
          Returns the type of the allowed entries which can be set via the DestinationMap.setEntries(List) method.
 RedeliveryPolicy getEntryFor(ActiveMQDestination destination)
           
 void setDefaultEntry(RedeliveryPolicy defaultEntry)
           
 void setRedeliveryPolicyEntries(List entries)
          Sets the individual entries on the redeliveryPolicyMap
 
Methods inherited from class org.apache.activemq.filter.DestinationMap
chooseValue, findWildcardMatches, get, getQueueRootChildCount, getQueueRootNode, getRootNode, getTempQueueRootNode, getTempTopicRootNode, getTopicRootChildCount, getTopicRootNode, put, remove, removeAll, reset, setEntries, union
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedeliveryPolicyMap

public RedeliveryPolicyMap()
Method Detail

getEntryFor

public RedeliveryPolicy getEntryFor(ActiveMQDestination destination)

setRedeliveryPolicyEntries

public void setRedeliveryPolicyEntries(List entries)
Sets the individual entries on the redeliveryPolicyMap


getDefaultEntry

public RedeliveryPolicy getDefaultEntry()

setDefaultEntry

public void setDefaultEntry(RedeliveryPolicy defaultEntry)

getEntryClass

protected Class<? extends DestinationMapEntry> getEntryClass()
Description copied from class: DestinationMap
Returns the type of the allowed entries which can be set via the DestinationMap.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.

Overrides:
getEntryClass in class DestinationMap


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.