Class NetSubmitter
java.lang.Object
io.github.projectunified.faststats.net.NetSubmitter
- All Implemented Interfaces:
Submitter
Implementation of
Submitter that uses HttpURLConnection
to submit GZIP-compressed telemetry payloads.-
Field Summary
Fields inherited from interface Submitter
DEFAULT_URL -
Constructor Summary
ConstructorsConstructorDescriptionNetSubmitter(String token) Constructs a newNetSubmitterwith the default metrics URL (https://metrics.faststats.dev/v1/collect) and default user agent.NetSubmitter(URL url, String token, String userAgent) Constructs a newNetSubmitter. -
Method Summary
-
Constructor Details
-
NetSubmitter
Constructs a newNetSubmitterwith the default metrics URL (https://metrics.faststats.dev/v1/collect) and default user agent.- Parameters:
token- the authorization token (bearer)
-
NetSubmitter
Constructs a newNetSubmitter.- Parameters:
url- the target metrics URLtoken- the authorization token (bearer)userAgent- the user agent header value
-
-
Method Details
-
execute
-