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
public abstract class Affinity extends Object implements Serializable
The affinity specification for an EJB proxy.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static AffinityLOCALThe specification for the local EJB environment.static AffinityNONEThe specification for no particular affinity.static StringWEAK_AFFINITY_CONTEXT_KEYKey which will be used in the invocation context data for passing around the weak affinity associated with a EJB.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)abstract booleanequals(Affinity other)static AffinityforUri(URI uri)Get the affinity specification corresponding to the given URI.abstract URIgetUri()Get the associated URI.abstract inthashCode()
-
-
-
Field Detail
-
NONE
public static final Affinity NONE
The specification for no particular affinity.
-
LOCAL
public static final Affinity LOCAL
The specification for the local EJB environment.
-
WEAK_AFFINITY_CONTEXT_KEY
public static final String WEAK_AFFINITY_CONTEXT_KEY
Key which will be used in the invocation context data for passing around the weak affinity associated with a EJB.- See Also:
- Constant Field Values
-
-
Method Detail
-
forUri
public static Affinity forUri(URI uri)
Get the affinity specification corresponding to the given URI.- Parameters:
uri- the URI- Returns:
- the affinity specification (not
null)
-
getUri
public abstract URI getUri()
Get the associated URI.- Returns:
- the associated URI (not
null)
-
equals
public abstract boolean equals(Affinity other)
-
-