public class ClusterConnection<T extends ClusterConnection<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ClusterConnection.MessageLoadBalancingType |
Constructor and Description |
---|
ClusterConnection(String key) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
Boolean |
allowDirectConnectionsOnly()
Whether, if a node learns of the existence of a node that is more than 1
hop away, we do not create a bridge for direct cluster connection.
|
T |
allowDirectConnectionsOnly(Boolean value)
Whether, if a node learns of the existence of a node that is more than 1
hop away, we do not create a bridge for direct cluster connection.
|
Long |
callFailoverTimeout()
The timeout to use when fail over is in process (in ms) for remote calls
made by the cluster connection.
|
T |
callFailoverTimeout(Long value)
The timeout to use when fail over is in process (in ms) for remote calls
made by the cluster connection.
|
Long |
callTimeout()
The timeout (in ms) for remote calls made by the cluster connection.
|
T |
callTimeout(Long value)
The timeout (in ms) for remote calls made by the cluster connection.
|
Long |
checkPeriod()
The period (in milliseconds) between client failure check.
|
T |
checkPeriod(Long value)
The period (in milliseconds) between client failure check.
|
String |
clusterConnectionAddress()
Each cluster connection only applies to messages sent to an address that
starts with this value.
|
T |
clusterConnectionAddress(String value)
Each cluster connection only applies to messages sent to an address that
starts with this value.
|
Integer |
confirmationWindowSize()
The confirmation-window-size to use for the connection used to forward
messages to a target node.
|
T |
confirmationWindowSize(Integer value)
The confirmation-window-size to use for the connection used to forward
messages to a target node.
|
Long |
connectionTtl()
The maximum time (in milliseconds) for which the connections used by the
cluster connections are considered alive (in the absence of heartbeat).
|
T |
connectionTtl(Long value)
The maximum time (in milliseconds) for which the connections used by the
cluster connections are considered alive (in the absence of heartbeat).
|
String |
connectorName()
The name of connector to use for live connection
|
T |
connectorName(String value)
The name of connector to use for live connection
|
String |
discoveryGroup()
The discovery group used to obtain the list of other servers in the
cluster to which this cluster connection will make connections.
|
T |
discoveryGroup(String value)
The discovery group used to obtain the list of other servers in the
cluster to which this cluster connection will make connections.
|
String |
getKey() |
Integer |
initialConnectAttempts()
The number of attempts to connect initially with this cluster connection.
|
T |
initialConnectAttempts(Integer value)
The number of attempts to connect initially with this cluster connection.
|
Integer |
maxHops()
The maximum number of times a message can be forwarded.
|
T |
maxHops(Integer value)
The maximum number of times a message can be forwarded.
|
Long |
maxRetryInterval()
The maximum interval of time used to retry connections
|
T |
maxRetryInterval(Long value)
The maximum interval of time used to retry connections
|
ClusterConnection.MessageLoadBalancingType |
messageLoadBalancingType()
The type of message load balancing provided by the cluster connection.
|
T |
messageLoadBalancingType(ClusterConnection.MessageLoadBalancingType value)
The type of message load balancing provided by the cluster connection.
|
Integer |
minLargeMessageSize()
The minimum size (in bytes) for a message before it is considered as a
large message.
|
T |
minLargeMessageSize(Integer value)
The minimum size (in bytes) for a message before it is considered as a
large message.
|
String |
nodeId()
The node ID used by this cluster connection.
|
T |
nodeId(String value)
The node ID used by this cluster connection.
|
Integer |
notificationAttempts()
How many times the cluster connection will broadcast itself
|
T |
notificationAttempts(Integer value)
How many times the cluster connection will broadcast itself
|
Long |
notificationInterval()
How often the cluster connection will broadcast itself
|
T |
notificationInterval(Long value)
How often the cluster connection will broadcast itself
|
Integer |
producerWindowSize()
Producer flow control size on the cluster connection.
|
T |
producerWindowSize(Integer value)
Producer flow control size on the cluster connection.
|
Integer |
reconnectAttempts()
The total number of reconnect attempts the bridge will make before giving
up and shutting down.
|
T |
reconnectAttempts(Integer value)
The total number of reconnect attempts the bridge will make before giving
up and shutting down.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
Long |
retryInterval()
The period in milliseconds between subsequent attempts to reconnect to a
target server, if the connection to the target server has failed.
|
T |
retryInterval(Long value)
The period in milliseconds between subsequent attempts to reconnect to a
target server, if the connection to the target server has failed.
|
Double |
retryIntervalMultiplier()
A multiplier to apply to the time since the last retry to compute the
time to the next retry.
|
T |
retryIntervalMultiplier(Double value)
A multiplier to apply to the time since the last retry to compute the
time to the next retry.
|
Boolean |
started()
Whether the cluster connection is started.
|
T |
started(Boolean value)
Whether the cluster connection is started.
|
T |
staticConnector(String value)
The statically defined list of connectors to which this cluster
connection will make connections.
|
List<String> |
staticConnectors()
The statically defined list of connectors to which this cluster
connection will make connections.
|
T |
staticConnectors(List<String> value)
The statically defined list of connectors to which this cluster
connection will make connections.
|
T |
staticConnectors(String... args)
The statically defined list of connectors to which this cluster
connection will make connections.
|
String |
topology()
The topology of the nodes that this cluster connection is aware of.
|
T |
topology(String value)
The topology of the nodes that this cluster connection is aware of.
|
Boolean |
useDuplicateDetection()
Whether the bridge will automatically insert a duplicate id property into
each message that it forwards.
|
T |
useDuplicateDetection(Boolean value)
Whether the bridge will automatically insert a duplicate id property into
each message that it forwards.
|
public ClusterConnection(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Boolean allowDirectConnectionsOnly()
public T allowDirectConnectionsOnly(Boolean value)
public Long callFailoverTimeout()
public T callFailoverTimeout(Long value)
public Long callTimeout()
public T callTimeout(Long value)
public Long checkPeriod()
public T checkPeriod(Long value)
public String clusterConnectionAddress()
public T clusterConnectionAddress(String value)
public Integer confirmationWindowSize()
public T confirmationWindowSize(Integer value)
public Long connectionTtl()
public T connectionTtl(Long value)
public String connectorName()
public String discoveryGroup()
public T discoveryGroup(String value)
public Integer initialConnectAttempts()
public T initialConnectAttempts(Integer value)
public Integer maxHops()
public T maxHops(Integer value)
public Long maxRetryInterval()
public T maxRetryInterval(Long value)
public ClusterConnection.MessageLoadBalancingType messageLoadBalancingType()
public T messageLoadBalancingType(ClusterConnection.MessageLoadBalancingType value)
public Integer minLargeMessageSize()
public T minLargeMessageSize(Integer value)
public String nodeId()
public Integer notificationAttempts()
public T notificationAttempts(Integer value)
public Long notificationInterval()
public T notificationInterval(Long value)
public Integer producerWindowSize()
public T producerWindowSize(Integer value)
public Integer reconnectAttempts()
public T reconnectAttempts(Integer value)
public Long retryInterval()
public T retryInterval(Long value)
public Double retryIntervalMultiplier()
public T retryIntervalMultiplier(Double value)
public Boolean started()
public List<String> staticConnectors()
public T staticConnectors(List<String> value)
public T staticConnector(String value)
public T staticConnectors(String... args)
public String topology()
public T topology(String value)
public Boolean useDuplicateDetection()
Copyright © 2019 JBoss by Red Hat. All rights reserved.