Package org.jboss.ejb.client
Class URIAffinity
- java.lang.Object
-
- org.jboss.ejb.client.Affinity
-
- org.jboss.ejb.client.URIAffinity
-
- All Implemented Interfaces:
Serializable
public final class URIAffinity extends Affinity
A URI affinity specification. Create instances usingAffinity.forUri(URI).- 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 URIAffinity(URI uri)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)booleanequals(Affinity other)booleanequals(URIAffinity other)URIgetUri()Get the associated URI.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
URIAffinity
public URIAffinity(URI uri)
Construct a new instance.- Parameters:
uri- the URI to bind to (must not benull)
-
-
Method Detail
-
equals
public boolean equals(URIAffinity other)
-
-