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.
|
T |
messageLoadBalancingType(String messageLoadBalancingType)
Deprecated.
|
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 |
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.
|
BigDecimal |
retryIntervalMultiplier()
A multiplier to apply to the time since the last retry to compute the
time to the next retry.
|
T |
retryIntervalMultiplier(BigDecimal 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)
@ModelNodeBinding(detypedName="allow-direct-connections-only") public Boolean allowDirectConnectionsOnly()
public T allowDirectConnectionsOnly(Boolean value)
@ModelNodeBinding(detypedName="call-failover-timeout") public Long callFailoverTimeout()
public T callFailoverTimeout(Long value)
@ModelNodeBinding(detypedName="call-timeout") public Long callTimeout()
public T callTimeout(Long value)
@ModelNodeBinding(detypedName="check-period") public Long checkPeriod()
public T checkPeriod(Long value)
@ModelNodeBinding(detypedName="cluster-connection-address") public String clusterConnectionAddress()
public T clusterConnectionAddress(String value)
@ModelNodeBinding(detypedName="confirmation-window-size") public Integer confirmationWindowSize()
public T confirmationWindowSize(Integer value)
@ModelNodeBinding(detypedName="connection-ttl") public Long connectionTtl()
public T connectionTtl(Long value)
@ModelNodeBinding(detypedName="connector-name") public String connectorName()
@ModelNodeBinding(detypedName="discovery-group") public String discoveryGroup()
public T discoveryGroup(String value)
@ModelNodeBinding(detypedName="initial-connect-attempts") public Integer initialConnectAttempts()
public T initialConnectAttempts(Integer value)
@ModelNodeBinding(detypedName="max-hops") public Integer maxHops()
public T maxHops(Integer value)
@ModelNodeBinding(detypedName="max-retry-interval") public Long maxRetryInterval()
public T maxRetryInterval(Long value)
@Deprecated public T messageLoadBalancingType(String messageLoadBalancingType)
@ModelNodeBinding(detypedName="message-load-balancing-type") public ClusterConnection.MessageLoadBalancingType messageLoadBalancingType()
public T messageLoadBalancingType(ClusterConnection.MessageLoadBalancingType value)
@ModelNodeBinding(detypedName="min-large-message-size") public Integer minLargeMessageSize()
public T minLargeMessageSize(Integer value)
@ModelNodeBinding(detypedName="node-id") public String nodeId()
@ModelNodeBinding(detypedName="notification-attempts") public Integer notificationAttempts()
public T notificationAttempts(Integer value)
@ModelNodeBinding(detypedName="notification-interval") public Long notificationInterval()
public T notificationInterval(Long value)
@ModelNodeBinding(detypedName="reconnect-attempts") public Integer reconnectAttempts()
public T reconnectAttempts(Integer value)
@ModelNodeBinding(detypedName="retry-interval") public Long retryInterval()
public T retryInterval(Long value)
@ModelNodeBinding(detypedName="retry-interval-multiplier") public BigDecimal retryIntervalMultiplier()
public T retryIntervalMultiplier(BigDecimal value)
@ModelNodeBinding(detypedName="started") public Boolean started()
@ModelNodeBinding(detypedName="static-connectors") public List<String> staticConnectors()
public T staticConnectors(List<String> value)
public T staticConnector(String value)
public T staticConnectors(String... args)
@ModelNodeBinding(detypedName="topology") public String topology()
public T topology(String value)
@ModelNodeBinding(detypedName="use-duplicate-detection") public Boolean useDuplicateDetection()
Copyright © 2016 JBoss by Red Hat. All rights reserved.