Class DestinationMap

  • Direct Known Subclasses:
    RedeliveryPolicyMap

    public class DestinationMap
    extends Object
    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.