public interface FederationStrategy
Sources in the
list, process the Results in a unique way, and then return the results
to the client.
For example, implementations can choose to block until all SourceResponses return then do a mass sort, or to return the results back
to the client as soon as they are received back from a FederatedSource.
| Modifier and Type | Method and Description |
|---|---|
QueryResponse |
federate(List<Source> sources,
QueryRequest query)
Federate the given query to the
List of Sources, returning a QueryResponse back to the user that will include the matching Results. |
QueryResponse federate(List<Source> sources, QueryRequest query) throws FederationException
List of Sources, returning a QueryResponse back to the user that will include the matching Results.sources - the List of Sources to be queried. Cannot be null or
empty.query - the QueryRequest to execute. Cannot be null.QueryResponse which contains the list of Results.FederationExceptionThis work is licensed under a Creative Commons Attribution 4.0 International License.