|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EndpointSelector
Facilitates context-based routing by determining the best endpoints for a specified context.
Field Summary | |
---|---|
static java.lang.String |
ENVIRONMENT
Context key whose value is the request's operating environment name (String). |
static java.lang.String |
INTERFACE_NAME
Context key whose value is the URI of the service interface being requested. |
static java.lang.String |
SUBSCRIPTION
Context key whose value contains the URI of the subscription for the business service being requested. |
Method Summary | |
---|---|
Endpoint |
selectEndpoint(Context context)
Deprecated. use selectEndpoints(Context) instead. This operation is only
considered valid for single-threaded use. In practice, this API is safe so long
as Endpoint.getComputation() is not invoked on the resulting endpoint. |
EndpointSelection |
selectEndpoints(Context context)
Select the best endpoints for the specified context. |
EndpointSelection |
selectEndpoints(Context context,
java.util.Collection listeners)
Select the best endpoints for the specified context. |
Field Detail |
---|
static final java.lang.String ENVIRONMENT
static final java.lang.String INTERFACE_NAME
static final java.lang.String SUBSCRIPTION
Method Detail |
---|
Endpoint selectEndpoint(Context context) throws EndpointNotFoundException, InvalidContextException
selectEndpoints(Context)
instead. This operation is only
considered valid for single-threaded use. In practice, this API is safe so long
as Endpoint.getComputation()
is not invoked on the resulting endpoint.
SUBSCRIPTION
context
- the context to consider for endpoint selection
EndpointNotFoundException
- indicates that a suitable endpoint could not be found
InvalidContextException
- indicates that the given context is not valid for endpoint selectionEndpointSelection selectEndpoints(Context context) throws EndpointNotFoundException, InvalidContextException
context
- the context to consider for endpoint selection
EndpointNotFoundException
- indicates that a suitable endpoint could not be found
InvalidContextException
- indicates that the given context is not valid for endpoint selectionEndpointSelection selectEndpoints(Context context, java.util.Collection listeners) throws EndpointNotFoundException, InvalidContextException
context
- the context to consider for endpoint selectionlisteners
- a collection of EndpointSelectionListener
instances that want to track
endpoint selection details
EndpointNotFoundException
- indicates that a suitable endpoint could not be found
InvalidContextException
- indicates that the given context is not valid for endpoint selection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |