LoadBalancePolicy implementation that, once a target is chosen, always favors that same target; i.e. no further load balancing occurs. Useful in cases where "sticky session" behavior is desired. Initially the favored target is randomly selected, so different instances of this class will likely not all select the same target; thus load balancing does occur across different proxies. Favoring the same target does not mean that fail-over will not occur if the chosen target dies. In this case, fail-over will occur, and a new favored target will be randomly chosen and invocation will continously be invoked on this new target until its death.
Each proxy using this policy will choose its own preferred target: the target is not shared accross the proxy family. For shared behaviour please take a look at {@link FirstAvailableIdenticalAllProxies}.
@author
Bill Burke.
@author
Sacha Labourey.
@author brian.stansberry@jboss.com
@version $Revision: 57642 $
@see org.jboss.ha.client.loadbalance.LoadBalancePolicy