Package org.jboss.ejb.client
Class Affinity
java.lang.Object
org.jboss.ejb.client.Affinity
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClusterAffinity,NodeAffinity,URIAffinity
The affinity specification for an EJB proxy.
- Author:
- David M. Lloyd
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AffinityThe specification for the local Enterprise Beans environment.static final AffinityThe specification for no particular affinity.static final StringKey which will be used in the invocation context data for passing around the weak affinity associated with a Enterprise Bean. -
Method Summary
-
Field Details
-
NONE
The specification for no particular affinity. -
LOCAL
The specification for the local Enterprise Beans environment. -
WEAK_AFFINITY_CONTEXT_KEY
Key which will be used in the invocation context data for passing around the weak affinity associated with a Enterprise Bean.- See Also:
-
-
Method Details
-
forUri
Get the affinity specification corresponding to the given URI.- Parameters:
uri- the URI- Returns:
- the affinity specification (not
null)
-
getUri
Get the associated URI.- Returns:
- the associated URI (not
null)
-
equals
-
equals
-
hashCode
public abstract int hashCode()
-