Package org.jboss.ejb.client
Class EJBClientCluster
- java.lang.Object
-
- org.jboss.ejb.client.EJBClientCluster
-
public final class EJBClientCluster extends Object
Information about a configured cluster on an Enterprise Bean client context.- Author:
- David M. Lloyd
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEJBClientCluster.BuilderA builder for a cluster definition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterNodeSelectorgetClusterNodeSelector()Get the cluster node selector to use.longgetConnectTimeoutMilliseconds()Get the connection timeout value in milliseconds.longgetMaximumConnectedNodes()Get the maximum number of nodes to connect.StringgetName()Get the name of the configured cluster.org.wildfly.security.auth.client.AuthenticationConfigurationgetOverrideConfiguration()Get the overriding authentication configuration in use for nodes in this cluster, overriding the caller's default.StringtoString()
-
-
-
Method Detail
-
getName
public String getName()
Get the name of the configured cluster.- Returns:
- the name of the configured cluster (not
null)
-
getMaximumConnectedNodes
public long getMaximumConnectedNodes()
Get the maximum number of nodes to connect.- Returns:
- the maximum number of nodes to connect, or 0 for no limit
-
getConnectTimeoutMilliseconds
public long getConnectTimeoutMilliseconds()
Get the connection timeout value in milliseconds. This value overrides any preconfigured values.- Returns:
- the connection timeout (in milliseconds), 0 for no timeout, or -1 to use the context default
-
getClusterNodeSelector
public ClusterNodeSelector getClusterNodeSelector()
Get the cluster node selector to use.- Returns:
- the cluster node selector, or
nullif the default selector from the context should be used
-
getOverrideConfiguration
public org.wildfly.security.auth.client.AuthenticationConfiguration getOverrideConfiguration()
Get the overriding authentication configuration in use for nodes in this cluster, overriding the caller's default.- Returns:
- the authentication configuration to use or
nullto use the standard inherited authentication configuration
-
-