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 Summary
Modifier and TypeMethodDescriptionorg.jboss.ejb.client.AffinityReturns the strong affinity for all invocations.org.jboss.ejb.client.AffinitygetWeakAffinity(I id) 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
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
-