public abstract class ArbitrationStrategyFunction extends Object
DiscoveryQos (using one of the constructors which take this as
an argument) in order to have control over which discovery entries are
used as result of the arbitration.DiscoveryEntry,
DiscoveryQos,
ArbitrationStrategy| Constructor and Description |
|---|
ArbitrationStrategyFunction() |
| Modifier and Type | Method and Description |
|---|---|
protected Optional<CustomParameter> |
findQosParameter(DiscoveryEntry discoveryEntry,
String parameterName) |
protected abstract Set<DiscoveryEntryWithMetaInfo> |
select(Map<String,String> parameters,
Collection<DiscoveryEntryWithMetaInfo> capabilities)
Implement this method so that it selects all relevant, discovered
capabilities which should be used in the result of the arbitration.
|
protected abstract Set<DiscoveryEntryWithMetaInfo> select(Map<String,String> parameters, Collection<DiscoveryEntryWithMetaInfo> capabilities)
parameters - the parameters which can be used during selection.capabilities - the list of candidate discovery entries from which
to select the relevant ones.null or an empty collection
are used to indicate that there was no match.protected Optional<CustomParameter> findQosParameter(DiscoveryEntry discoveryEntry, String parameterName)
Copyright © 2021. All rights reserved.