org.jboss.messaging.core.postoffice.impl
Class SimpleAddressManager

java.lang.Object
  extended by org.jboss.messaging.core.postoffice.impl.SimpleAddressManager
All Implemented Interfaces:
AddressManager
Direct Known Subclasses:
WildcardAddressManager

public class SimpleAddressManager
extends java.lang.Object
implements AddressManager

A simple address manager that maintains the addresses and bindings.

Author:
Tim Fox, Jeff Mesnil, Andy Taylor

Constructor Summary
SimpleAddressManager()
           
 
Method Summary
 boolean addBinding(Binding binding)
           
protected  boolean addMappingInternal(SimpleString address, Binding binding)
           
 void clear()
           
 Binding getBinding(SimpleString bindableName)
           
 java.util.Map<SimpleString,Binding> getBindings()
           
 Bindings getBindingsForRoutingAddress(SimpleString address)
           
 Bindings getMatchingBindings(SimpleString address)
           
 Binding removeBinding(SimpleString uniqueName)
           
protected  void removeBindingInternal(SimpleString address, SimpleString bindableName)
           
protected  Binding removeMapping(SimpleString bindableName, Bindings bindings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAddressManager

public SimpleAddressManager()
Method Detail

addBinding

public boolean addBinding(Binding binding)
Specified by:
addBinding in interface AddressManager

removeBinding

public Binding removeBinding(SimpleString uniqueName)
Specified by:
removeBinding in interface AddressManager

getBindingsForRoutingAddress

public Bindings getBindingsForRoutingAddress(SimpleString address)
Specified by:
getBindingsForRoutingAddress in interface AddressManager

getBinding

public Binding getBinding(SimpleString bindableName)
Specified by:
getBinding in interface AddressManager

getBindings

public java.util.Map<SimpleString,Binding> getBindings()
Specified by:
getBindings in interface AddressManager

getMatchingBindings

public Bindings getMatchingBindings(SimpleString address)
Specified by:
getMatchingBindings in interface AddressManager

clear

public void clear()
Specified by:
clear in interface AddressManager

removeBindingInternal

protected void removeBindingInternal(SimpleString address,
                                     SimpleString bindableName)

removeMapping

protected Binding removeMapping(SimpleString bindableName,
                                Bindings bindings)

addMappingInternal

protected boolean addMappingInternal(SimpleString address,
                                     Binding binding)


Copyright © 2006 JBoss Inc. All Rights Reserved.