Package org.apache.activemq.broker
Class BrokerRegistry
- java.lang.Object
-
- org.apache.activemq.broker.BrokerRegistry
-
public class BrokerRegistry extends Object
-
-
Constructor Summary
Constructors Constructor Description BrokerRegistry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(String brokerName, BrokerService broker)
BrokerService
findFirst()
Returns the first registered broker foundMap<String,BrokerService>
getBrokers()
static BrokerRegistry
getInstance()
Object
getRegistryMutext()
BrokerService
lookup(String brokerName)
void
unbind(String brokerName)
-
-
-
Method Detail
-
getInstance
public static BrokerRegistry getInstance()
-
lookup
public BrokerService lookup(String brokerName)
- Parameters:
brokerName
-- Returns:
- the BrokerService
-
findFirst
public BrokerService findFirst()
Returns the first registered broker found- Returns:
- the first BrokerService
-
bind
public void bind(String brokerName, BrokerService broker)
- Parameters:
brokerName
-broker
-
-
unbind
public void unbind(String brokerName)
- Parameters:
brokerName
-
-
getRegistryMutext
public Object getRegistryMutext()
- Returns:
- the mutex used
-
getBrokers
public Map<String,BrokerService> getBrokers()
-
-