Interface AffinitySupport<I>

Type Parameters:
I - the bean type
All Known Subinterfaces:
BeanManager<K,V>

public interface AffinitySupport<I>
Defines the affinity requirements for remote clients.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jboss.ejb.client.Affinity
    Returns the strong affinity for all invocations.
    org.jboss.ejb.client.Affinity
    Returns the weak affinity of the specified bean identifier.
  • Method Details

    • getStrongAffinity

      org.jboss.ejb.client.Affinity getStrongAffinity()
      Returns the strong affinity for all invocations. Strong affinity indicates a strict load balancing requirement.
      Returns:
      an affinity
    • getWeakAffinity

      org.jboss.ejb.client.Affinity getWeakAffinity(I id)
      Returns the weak affinity of the specified bean identifier. Weak affinity indicates a load balancing preference within the confines of the strong affinity.
      Parameters:
      id - a bean identifier
      Returns:
      an affinity