org.apache.servicemix.jbi.resolver
Class RandomChoicePolicy
java.lang.Object
org.apache.servicemix.jbi.resolver.RandomChoicePolicy
- All Implemented Interfaces:
- EndpointChooser
public class RandomChoicePolicy
- extends Object
- implements EndpointChooser
A simple selection policy where the the endpoint is chosen randomly.
- Version:
- $Revision: 647330 $
|
Method Summary |
javax.jbi.servicedesc.ServiceEndpoint |
chooseEndpoint(javax.jbi.servicedesc.ServiceEndpoint[] endpoints,
javax.jbi.component.ComponentContext context,
javax.jbi.messaging.MessageExchange exchange)
Chooses an endpoint from the array of 2 or more endpoints or returns null if none of them are acceptable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomChoicePolicy
public RandomChoicePolicy()
chooseEndpoint
public javax.jbi.servicedesc.ServiceEndpoint chooseEndpoint(javax.jbi.servicedesc.ServiceEndpoint[] endpoints,
javax.jbi.component.ComponentContext context,
javax.jbi.messaging.MessageExchange exchange)
- Description copied from interface:
EndpointChooser
- Chooses an endpoint from the array of 2 or more endpoints or returns null if none of them are acceptable
- Specified by:
chooseEndpoint in interface EndpointChooser
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.