public final class PubSubFactory
extends java.lang.Object
Subscriber,
Publisher| Constructor and Description |
|---|
PubSubFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Publisher |
publisher()
Create a new Publisher instance.
|
static Publisher |
publisher(java.lang.String username,
java.lang.String password,
java.lang.String brokerList,
java.lang.Boolean loadBalancing,
java.lang.Boolean sequential,
java.lang.Boolean selectorAtBroker)
Create a new Publisher instance using default properties.
|
static Subscriber |
subscriber()
Create a new Subscriber instance using default properties.
|
static Subscriber |
subscriber(java.lang.String username,
java.lang.String password,
java.lang.String brokerList,
java.lang.Boolean loadBalancing,
java.lang.Boolean sequential,
java.lang.Boolean selectorAtBroker)
Create a new Subscriber instance.
|
public static Publisher publisher() throws MOMException
MOMException - if the system fails to instantiate the Publisher due to some internal error.public static Publisher publisher(java.lang.String username, java.lang.String password, java.lang.String brokerList, java.lang.Boolean loadBalancing, java.lang.Boolean sequential, java.lang.Boolean selectorAtBroker) throws MOMException
username - the user name. This may be null.password - the password. This may be null.brokerList - the coma separated broker URLs list (in the form [protocol://]hostname[:port]). This may be null.loadBalancing - if true, indicates that the client is willing to have a connect request re-directed to another broker within the broker list. This may be null.sequential - if true, the broker list will be scanned sequentially. This may be null.selectorAtBroker - if true, selectors will be evaluated on the broker side. This may be null.MOMException - if the system fails to instantiate the Publisher due to some internal error.public static Subscriber subscriber() throws MOMException
MOMException - if the system fails to instantiate a Subscriber due to some internal error.public static Subscriber subscriber(java.lang.String username, java.lang.String password, java.lang.String brokerList, java.lang.Boolean loadBalancing, java.lang.Boolean sequential, java.lang.Boolean selectorAtBroker) throws MOMException
username - the user name. This may be null.password - the password. This may be null.brokerList - the coma separated broker URLs list (in the form [protocol://]hostname[:port]). This may be null.loadBalancing - if true, indicates that the client is willing to have a connect request re-directed to another broker within a cluster. This may be null.sequential - if true, the broker list will be scanned sequentially. This may be null.selectorAtBroker - if true, selectors will be evaluated on the broker side. This may be null.MOMException - if the system fails to instantiate a Subscriber due to some internal error.