public class StatisticsSender extends Object
| Constructor and Description |
|---|
StatisticsSender(StatisticsStorage storage)
Creates a new instance connected to the given storage.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getReportingUrl()
Get the remote reporting URL.
|
void |
triggerSendIfNeeded(com.fasterxml.jackson.databind.node.ObjectNode json)
Send data in the background if needed.
|
public StatisticsSender(StatisticsStorage storage)
storage - the storage to usepublic String getReportingUrl()
StatisticsConstants.USAGE_REPORT_URL by default.public void triggerSendIfNeeded(com.fasterxml.jackson.databind.node.ObjectNode json)
json - The json returned by StatisticsStorage.read()Copyright © 2000–2022 Vaadin Ltd. All rights reserved.