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 Affinity
LOCAL
The specification for the local Enterprise Beans environment.static Affinity
NONE
The specification for no particular affinity.static String
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.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
abstract boolean
equals(Affinity other)
static Affinity
forUri(URI uri)
Get the affinity specification corresponding to the given URI.abstract URI
getUri()
Get the associated URI.abstract int
hashCode()
-
-
-
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 Enterprise Beans 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 Enterprise Bean.- 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)
-
-