Package org.jboss.ejb.client
Class ClusterAffinity
- java.lang.Object
-
- org.jboss.ejb.client.Affinity
-
- org.jboss.ejb.client.ClusterAffinity
-
- All Implemented Interfaces:
Serializable
public final class ClusterAffinity extends Affinity
A cluster affinity specification.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.jboss.ejb.client.Affinity
LOCAL, NONE, WEAK_AFFINITY_CONTEXT_KEY
-
-
Constructor Summary
Constructors Constructor Description ClusterAffinity(String clusterName)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)booleanequals(Affinity other)booleanequals(ClusterAffinity other)StringgetClusterName()Get the associated cluster name.URIgetUri()Get the associated URI.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
ClusterAffinity
public ClusterAffinity(String clusterName)
Construct a new instance.- Parameters:
clusterName- the associated cluster name
-
-
Method Detail
-
getClusterName
public String getClusterName()
Get the associated cluster name.- Returns:
- the associated cluster name
-
equals
public boolean equals(ClusterAffinity other)
-
-