com.vaadin.flow.internal.
Class UsageStatistics
Collects entries that should be exported for vaadin-usage-statistics when running in development mode.
Statistics gathering is automatically disabled and excluded in production mode.
For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
For internal use only. May be renamed or removed in a future release.
Since:
1.0
Author:
Vaadin Ltd
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A usage statistics entry.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stream<UsageStatistics.UsageEntry>
Gets a stream of the current usage entries.
static void
markAsUsed
(String name, String version) Registers a new entry with the given feature name and version string if no previous entry has been registered for the same name.
static void
removeEntry
(String name) Remove a entry of the current usage entries.
static void
Reset the usage entries.
-
Method Details
-
markAsUsed
Registers a new entry with the given feature name and version string if no previous entry has been registered for the same name.
Parameters:
name
- the feature name, notnull
version
- the version, ornull
to use the current Flow version -
getEntries
Gets a stream of the current usage entries.
Returns:
a stream of entries, not
null
-
removeEntry
Remove a entry of the current usage entries.
Parameters:
name
- the feature name want to be removed, notnull
-
resetEntries
public static void resetEntries()Reset the usage entries.
-