public class HierarchicalUsagePropertyProvider extends Object implements UsagePropertyProvider
UsagePropertyProvider
instances into a single provider. It will return the first non-null
value for each property from the list of providers, sorted by their priority.Constructor and Description |
---|
HierarchicalUsagePropertyProvider(List<UsagePropertyProvider> providers)
Creates a new
HierarchicalUsagePropertyProvider with the given list of providers. |
Modifier and Type | Method and Description |
---|---|
Boolean |
getDisabled()
Returns whether the Anonymous Usage Collection is disabled.
|
String |
getUrl()
Returns the URL for the Anonymous Usage Collection endpoint.
|
int |
priority()
Returns the priority of this property provider.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
public HierarchicalUsagePropertyProvider(List<UsagePropertyProvider> providers)
HierarchicalUsagePropertyProvider
with the given list of providers. The providers will be
sorted by their priority in descending order, meaning the highest priority provider will be checked first.providers
- The list of UsagePropertyProvider
instances to combine.public Boolean getDisabled()
UsagePropertyProvider
getDisabled
in interface UsagePropertyProvider
true
if the collection is disabled, null
if not specified, or false
if enabled.public String getUrl()
UsagePropertyProvider
getUrl
in interface UsagePropertyProvider
String
, or null
if not specified.public int priority()
UsagePropertyProvider
priority
in interface UsagePropertyProvider
int
representing the priority of this provider.Copyright © 2010–2025. All rights reserved.