org.apache.servicemix.jbi.resolver
Interface EndpointChooser

All Known Implementing Classes:
FirstChoicePolicy, RandomChoicePolicy, ServiceRoundRobinPolicy

public interface EndpointChooser

A selection policy which will choose a service endpoint from an array of possible endpoints using some kind of policy.

Version:
$Revision: 426415 $

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
 

Method Detail

chooseEndpoint

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



Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.