Class ClusterAffinity

java.lang.Object
org.jboss.ejb.client.Affinity
org.jboss.ejb.client.ClusterAffinity
All Implemented Interfaces:
Serializable

public final class ClusterAffinity extends Affinity
A cluster affinity specification.
Author:
David M. Lloyd
See Also:
  • Constructor Details

    • ClusterAffinity

      public ClusterAffinity(String clusterName)
      Construct a new instance.
      Parameters:
      clusterName - the associated cluster name
  • Method Details

    • getClusterName

      public String getClusterName()
      Get the associated cluster name.
      Returns:
      the associated cluster name
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getUri

      public URI getUri()
      Description copied from class: Affinity
      Get the associated URI.
      Specified by:
      getUri in class Affinity
      Returns:
      the associated URI (not null)
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Affinity
    • equals

      public boolean equals(Affinity other)
      Specified by:
      equals in class Affinity
    • equals

      public boolean equals(ClusterAffinity other)
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class Affinity