Class BrokerFactory
java.lang.Object
org.apache.activemq.broker.BrokerFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic BrokerServicecreateBroker(String brokerURI) Creates a broker from a URI configurationstatic BrokerServicecreateBroker(String brokerURI, boolean startBroker) Creates a broker from a URI configurationstatic BrokerServicecreateBroker(URI brokerURI) Creates a broker from a URI configurationstatic BrokerServicecreateBroker(URI brokerURI, boolean startBroker) Creates a broker from a URI configurationstatic BrokerFactoryHandlerstatic booleanstatic voidstatic voidsetStartDefault(boolean startDefault)
-
Method Details
-
createBrokerFactoryHandler
- Throws:
IOException
-
createBroker
Creates a broker from a URI configuration- Parameters:
brokerURI- the URI scheme to configure the broker- Throws:
Exception
-
createBroker
Creates a broker from a URI configuration- Parameters:
brokerURI- the URI scheme to configure the brokerstartBroker- whether or not the broker should have itsBrokerService.start()method called after construction- Throws:
Exception
-
createBroker
Creates a broker from a URI configuration- Parameters:
brokerURI- the URI scheme to configure the broker- Throws:
Exception
-
createBroker
Creates a broker from a URI configuration- Parameters:
brokerURI- the URI scheme to configure the brokerstartBroker- whether or not the broker should have itsBrokerService.start()method called after construction- Throws:
Exception
-
setStartDefault
public static void setStartDefault(boolean startDefault) -
resetStartDefault
public static void resetStartDefault() -
getStartDefault
public static boolean getStartDefault()
-