Class DefaultUsagePropertyProvider
java.lang.Object
org.axonframework.update.configuration.DefaultUsagePropertyProvider
- All Implemented Interfaces:
UsagePropertyProvider
Default implementation of the
UsagePropertyProvider interface. This implementation provides default values
for the properties used in the Axon Framework usage API. It is used when no other provider has a value.
As there is no dependent state and holds default values, this class is implemented as a singleton. Retrieve the
instance using INSTANCE.
- Since:
- 5.0.0
- Author:
- Mitchell Herrijgers
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic DefaultUsagePropertyProviderSingleton instance of theDefaultUsagePropertyProvider. -
Method Summary
-
Field Details
-
INSTANCE
Singleton instance of theDefaultUsagePropertyProvider.
-
-
Method Details
-
getDisabled
Description copied from interface:UsagePropertyProviderReturns whether the Anonymous Usage Collection is disabled.- Specified by:
getDisabledin interfaceUsagePropertyProvider- Returns:
trueif the collection is disabled,nullif not specified, orfalseif enabled.
-
getUrl
Description copied from interface:UsagePropertyProviderReturns the URL for the Anonymous Usage Collection endpoint.- Specified by:
getUrlin interfaceUsagePropertyProvider- Returns:
- The URL as a
String, ornullif not specified.
-
priority
public int priority()Description copied from interface:UsagePropertyProviderReturns the priority of this property provider. Higher values indicate higher priority. Providers with higher priority will be checked first when retrieving properties.- Specified by:
priorityin interfaceUsagePropertyProvider- Returns:
- An
intrepresenting the priority of this provider.
-