Package io.quarkus.analytics.dto.config
Class RemoteConfig
- java.lang.Object
-
- io.quarkus.analytics.dto.config.RemoteConfig
-
- All Implemented Interfaces:
AnalyticsRemoteConfig,Serializable
public class RemoteConfig extends Object implements AnalyticsRemoteConfig, Serializable
Allow to configure build analytics behaviour by downloading a remote configuration file from a public location.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRemoteConfig.RemoteConfigBuilder
-
Constructor Summary
Constructors Constructor Description RemoteConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RemoteConfig.RemoteConfigBuilderbuilder()booleanequals(Object o)List<String>getDenyAnonymousIds()List of anonymous UUID representing the users who will not send analytics.List<String>getDenyQuarkusVersions()List of quarkus versions that will not send analytics.DurationgetRefreshInterval()Configuration refresh intervalinthashCode()booleanisActive()voidsetActive(boolean active)voidsetDenyAnonymousIds(List<String> denyAnonymousIds)voidsetDenyQuarkusVersions(List<String> denyQuarkusVersions)voidsetRefreshInterval(Duration refreshInterval)
-
-
-
Method Detail
-
builder
public static RemoteConfig.RemoteConfigBuilder builder()
-
isActive
public boolean isActive()
- Specified by:
isActivein interfaceAnalyticsRemoteConfig- Returns:
- true if the analytics is enabled
-
setActive
public void setActive(boolean active)
-
getDenyAnonymousIds
public List<String> getDenyAnonymousIds()
Description copied from interface:AnalyticsRemoteConfigList of anonymous UUID representing the users who will not send analytics. The data from particular UUIDs might contain issues and generation will be disabled at the source.- Specified by:
getDenyAnonymousIdsin interfaceAnalyticsRemoteConfig- Returns:
-
getDenyQuarkusVersions
public List<String> getDenyQuarkusVersions()
Description copied from interface:AnalyticsRemoteConfigList of quarkus versions that will not send analytics. The data from particular versions might contain issues and generation will be disabled at the source.- Specified by:
getDenyQuarkusVersionsin interfaceAnalyticsRemoteConfig- Returns:
-
getRefreshInterval
public Duration getRefreshInterval()
Description copied from interface:AnalyticsRemoteConfigConfiguration refresh interval- Specified by:
getRefreshIntervalin interfaceAnalyticsRemoteConfig- Returns:
-
setRefreshInterval
public void setRefreshInterval(Duration refreshInterval)
-
-