public final class BrokerFactory extends Object
Modifier and Type | Method and Description |
---|---|
static BrokerService |
createBroker(String brokerURI)
Creates a broker from a URI configuration
|
static BrokerService |
createBroker(String brokerURI,
boolean startBroker)
Creates a broker from a URI configuration
|
static BrokerService |
createBroker(URI brokerURI)
Creates a broker from a URI configuration
|
static BrokerService |
createBroker(URI brokerURI,
boolean startBroker)
Creates a broker from a URI configuration
|
static BrokerFactoryHandler |
createBrokerFactoryHandler(String type) |
public static BrokerFactoryHandler createBrokerFactoryHandler(String type) throws IOException
IOException
public static BrokerService createBroker(URI brokerURI) throws Exception
brokerURI
- the URI scheme to configure the brokerException
public static BrokerService createBroker(URI brokerURI, boolean startBroker) throws Exception
brokerURI
- the URI scheme to configure the brokerstartBroker
- whether or not the broker should have its
BrokerService.start()
method called after
constructionException
public static BrokerService createBroker(String brokerURI) throws Exception
brokerURI
- the URI scheme to configure the brokerException
public static BrokerService createBroker(String brokerURI, boolean startBroker) throws Exception
brokerURI
- the URI scheme to configure the brokerstartBroker
- whether or not the broker should have its
BrokerService.start()
method called after
constructionException
Copyright © 2005–2015. All rights reserved.