Package org.jboss.ejb.client
Class NodeAffinity
- java.lang.Object
-
- org.jboss.ejb.client.Affinity
-
- org.jboss.ejb.client.NodeAffinity
-
- All Implemented Interfaces:
Serializable
public final class NodeAffinity extends Affinity
A single node 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 NodeAffinity(String nodeName)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)booleanequals(Affinity other)booleanequals(NodeAffinity other)StringgetNodeName()Get the associated node name.URIgetUri()Get the associated URI.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
NodeAffinity
public NodeAffinity(String nodeName)
Construct a new instance.- Parameters:
nodeName- the associated node name (must not benull)
-
-
Method Detail
-
getNodeName
public String getNodeName()
Get the associated node name.- Returns:
- the associated node name
-
equals
public boolean equals(NodeAffinity other)
-
-