org.talend.esb.servicelocator.cxf.internal
Class DefaultSelectionStrategy
java.lang.Object
org.talend.esb.servicelocator.cxf.internal.LocatorSelectionStrategy
org.talend.esb.servicelocator.cxf.internal.DefaultSelectionStrategy
- All Implemented Interfaces:
- org.apache.cxf.clustering.FailoverStrategy
public class DefaultSelectionStrategy
- extends LocatorSelectionStrategy
- implements org.apache.cxf.clustering.FailoverStrategy
Keeps the endpoint as long as there is no failover.
In case of a fail over all strategies are equivalent - a random alternative
endpoint is selected.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.cxf.clustering.FailoverStrategy |
getAlternateEndpoints, selectAlternateAddress, selectAlternateEndpoint |
DefaultSelectionStrategy
public DefaultSelectionStrategy()
getAlternateAddresses
public List<String> getAlternateAddresses(org.apache.cxf.message.Exchange exchange)
- Specified by:
getAlternateAddresses in interface org.apache.cxf.clustering.FailoverStrategy
getPrimaryAddress
public String getPrimaryAddress(org.apache.cxf.message.Exchange exchange)
- Specified by:
getPrimaryAddress in class LocatorSelectionStrategy
- Returns:
Copyright © 2011–2013 Talend Inc.. All rights reserved.