Package | Description |
---|---|
org.jboss.ejb.client | |
org.jboss.ejb.client.legacy |
Modifier and Type | Field and Description |
---|---|
static ClusterNodeSelector |
ClusterNodeSelector.DEFAULT
A simple default selector which uses
simpleConnectionThresholdRandomSelector(int) with a minimum of
5 connections. |
static ClusterNodeSelector |
ClusterNodeSelector.DEFAULT_PREFER_LOCAL
A deployment node selector which check the server name if inside and prefer it if available for selection.
|
static ClusterNodeSelector |
ClusterNodeSelector.FIRST_AVAILABLE
Always use the first available node, regardless of whether it is connected.
|
static ClusterNodeSelector |
ClusterNodeSelector.FIRST_CONNECTED
Always use the first connected node, or fall back to the first available node if none are connected.
|
static ClusterNodeSelector |
ClusterNodeSelector.RANDOM
Use a random available node, regardless of whether it is connected.
|
static ClusterNodeSelector |
ClusterNodeSelector.RANDOM_CONNECTED
Always use a random connected node, or fall back to a random unconnected node.
|
static ClusterNodeSelector |
ClusterNodeSelector.RANDOM_PREFER_LOCAL |
static ClusterNodeSelector |
ClusterNodeSelector.ROUND_ROBIN
Use available nodes in a round-robin fashion, regardless of whether it is connected.
|
Modifier and Type | Method and Description |
---|---|
static ClusterNodeSelector |
ClusterNodeSelector.firstConnected(ClusterNodeSelector fallback)
Always try to use the first connected node.
|
ClusterNodeSelector |
EJBClientCluster.getClusterNodeSelector()
Get the cluster node selector to use.
|
static ClusterNodeSelector |
ClusterNodeSelector.minimumConnectionThreshold(int minimum,
ClusterNodeSelector unmet,
ClusterNodeSelector met)
Determine the action to take based on a threshold of minimum connections.
|
static ClusterNodeSelector |
ClusterNodeSelector.simpleConnectionThresholdRandomSelector(int minimum)
A simple threshold-based random selector.
|
static ClusterNodeSelector |
ClusterNodeSelector.useRandomConnectedNode(ClusterNodeSelector fallback)
Always try to use a random connected node.
|
static ClusterNodeSelector |
ClusterNodeSelector.useRandomUnconnectedNode(ClusterNodeSelector fallback)
Always try to use an unconnected node.
|
static ClusterNodeSelector |
ClusterNodeSelector.useRoundRobinConnectedNode(ClusterNodeSelector fallback)
Always try to round-robin among connected nodes.
|
static ClusterNodeSelector |
ClusterNodeSelector.useRoundRobinUnconnectedNode(ClusterNodeSelector fallback)
Always try to use an unconnected node in a round-robin fashion.
|
Modifier and Type | Method and Description |
---|---|
static ClusterNodeSelector |
ClusterNodeSelector.firstConnected(ClusterNodeSelector fallback)
Always try to use the first connected node.
|
static ClusterNodeSelector |
ClusterNodeSelector.minimumConnectionThreshold(int minimum,
ClusterNodeSelector unmet,
ClusterNodeSelector met)
Determine the action to take based on a threshold of minimum connections.
|
EJBClientCluster.Builder |
EJBClientCluster.Builder.setClusterNodeSelector(ClusterNodeSelector clusterNodeSelector) |
EJBClientContext.Builder |
EJBClientContext.Builder.setClusterNodeSelector(ClusterNodeSelector clusterNodeSelector) |
static ClusterNodeSelector |
ClusterNodeSelector.useRandomConnectedNode(ClusterNodeSelector fallback)
Always try to use a random connected node.
|
static ClusterNodeSelector |
ClusterNodeSelector.useRandomUnconnectedNode(ClusterNodeSelector fallback)
Always try to use an unconnected node.
|
static ClusterNodeSelector |
ClusterNodeSelector.useRoundRobinConnectedNode(ClusterNodeSelector fallback)
Always try to round-robin among connected nodes.
|
static ClusterNodeSelector |
ClusterNodeSelector.useRoundRobinUnconnectedNode(ClusterNodeSelector fallback)
Always try to use an unconnected node in a round-robin fashion.
|
Modifier and Type | Method and Description |
---|---|
org.wildfly.common.function.ExceptionSupplier<ClusterNodeSelector,ReflectiveOperationException> |
JBossEJBProperties.ClusterConfiguration.getClusterNodeSelectorSupplier() |
Copyright © 2021 JBoss by Red Hat. All rights reserved.