public enum JMSFactoryType extends Enum<JMSFactoryType>
Enum Constant and Description |
---|
CF |
QUEUE_CF |
QUEUE_XA_CF |
TOPIC_CF |
TOPIC_XA_CF |
XA_CF |
Modifier and Type | Method and Description |
---|---|
abstract Class |
connectionFactoryInterface()
Returns the connection factory interface that this JMSFactoryType creates.
|
abstract ActiveMQConnectionFactory |
createConnectionFactoryWithHA(DiscoveryGroupConfiguration groupConfiguration)
Creates an ActiveMQConnectionFactory that receives cluster topology updates from the cluster as
servers leave or join and new backups are appointed or removed.
|
abstract ActiveMQConnectionFactory |
createConnectionFactoryWithHA(TransportConfiguration... initialServers)
Create an ActiveMQConnectionFactory which will receive cluster topology updates from the cluster
as servers leave or join and new backups are appointed or removed.
|
abstract ActiveMQConnectionFactory |
createConnectionFactoryWithoutHA(DiscoveryGroupConfiguration groupConfiguration)
Create an ActiveMQConnectionFactory which creates session factories from a set of live servers, no HA backup information is propagated to the client
|
abstract ActiveMQConnectionFactory |
createConnectionFactoryWithoutHA(TransportConfiguration... transportConfigurations)
Create an ActiveMQConnectionFactory which creates session factories using a static list of
transportConfigurations.
|
int |
intValue() |
static JMSFactoryType |
valueOf(int val) |
static JMSFactoryType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JMSFactoryType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JMSFactoryType CF
public static final JMSFactoryType QUEUE_CF
public static final JMSFactoryType TOPIC_CF
public static final JMSFactoryType XA_CF
public static final JMSFactoryType QUEUE_XA_CF
public static final JMSFactoryType TOPIC_XA_CF
public static JMSFactoryType[] values()
for (JMSFactoryType c : JMSFactoryType.values()) System.out.println(c);
public static JMSFactoryType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int intValue()
public static JMSFactoryType valueOf(int val)
public abstract ActiveMQConnectionFactory createConnectionFactoryWithHA(DiscoveryGroupConfiguration groupConfiguration)
The discoveryAddress and discoveryPort parameters in this method are used to listen for UDP broadcasts which contain connection information for members of the cluster. The broadcasted connection information is simply used to make an initial connection to the cluster, once that connection is made, up to date cluster topology information is downloaded and automatically updated whenever the cluster topology changes. If the topology includes backup servers that information is also propagated to the client so that it can know which server to failover onto in case of live server failure.
groupConfiguration
- public abstract ActiveMQConnectionFactory createConnectionFactoryWithoutHA(DiscoveryGroupConfiguration groupConfiguration)
The UDP address and port are used to listen for live servers in the cluster
groupConfiguration
- public abstract ActiveMQConnectionFactory createConnectionFactoryWithHA(TransportConfiguration... initialServers)
The initial list of servers supplied in this method is simply to make an initial connection to the cluster, once that connection is made, up to date cluster topology information is downloaded and automatically updated whenever the cluster topology changes. If the topology includes backup servers that information is also propagated to the client so that it can know which server to failover onto in case of live server failure.
initialServers
- The initial set of servers used to make a connection to the cluster.
Each one is tried in turn until a successful connection is made. Once a connection
is made, the cluster topology is downloaded and the rest of the list is ignored.public abstract ActiveMQConnectionFactory createConnectionFactoryWithoutHA(TransportConfiguration... transportConfigurations)
The ActiveMQConnectionFactory is not updated automatically as the cluster topology changes, and no HA backup information is propagated to the client
transportConfigurations
- public abstract Class connectionFactoryInterface()
Copyright © 2021 JBoss by Red Hat. All rights reserved.