Interface AffinitySupport<I>

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

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

      • 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