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:
  • Field Details

    • 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:
  • Method Details

    • 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 boolean equals(Object other)
      Overrides:
      equals in class Object
    • equals

      public abstract boolean equals(Affinity other)
    • hashCode

      public abstract int hashCode()
      Overrides:
      hashCode in class Object