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.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.
|
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.
|
EJBClientContext.Builder |
EJBClientContext.Builder.setClusterNodeSelector(ClusterNodeSelector clusterNodeSelector) |
EJBClientCluster.Builder |
EJBClientCluster.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 © 2017 JBoss by Red Hat. All rights reserved.