Package org.jboss.ejb.client
Class EJBClientCluster
java.lang.Object
org.jboss.ejb.client.EJBClientCluster
Information about a configured cluster on an Enterprise Bean client context.
- Author:
- David M. Lloyd
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder for a cluster definition. -
Method Summary
Modifier and TypeMethodDescriptionGet the cluster node selector to use.longGet the connection timeout value in milliseconds.longGet the maximum number of nodes to connect.getName()Get the name of the configured cluster.org.wildfly.security.auth.client.AuthenticationConfigurationGet the overriding authentication configuration in use for nodes in this cluster, overriding the caller's default.toString()
-
Method Details
-
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
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
-
toString
-