Contents
Class ExecutorMetricsRegistry<T extends ExecutorMetricsRegistry.ExecutorMetric>
java.lang.Object
com.hypixel.hytale.metrics.MetricsRegistry<T>
com.hypixel.hytale.metrics.ExecutorMetricsRegistry<T>
- All Implemented Interfaces:
Codec<T>, RawJsonCodec<T>, SchemaConvertable<T>
public class ExecutorMetricsRegistry<T extends ExecutorMetricsRegistry.ExecutorMetric>
extends MetricsRegistry<T>
- Since:
- 2020/09/22
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class MetricsRegistry
JSON_SETTINGSFields inherited from interface Codec
BASE64_PATTERN, BOOLEAN, BSON_DOCUMENT, BYTE, BYTE_ARRAY, DOUBLE, DOUBLE_ARRAY, DURATION, DURATION_SECONDS, FLOAT, FLOAT_ARRAY, INSTANT, INT_ARRAY, INTEGER, LOG_LEVEL, LONG, LONG_ARRAY, NULLABLE_BOOLEAN, PATH, SHORT, STRING, STRING_ARRAY, UUID_BINARY, UUID_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bson.BsonValueregister(String id, MetricsRegistry<Void> metricsRegistry) <R extends MetricProvider>
ExecutorMetricsRegistry<T> <R> ExecutorMetricsRegistry<T> <R> ExecutorMetricsRegistry<T> Methods inherited from class MetricsRegistry
createDatePath, createDumpPath, createDumpPath, createDumpPath, decode, dumpToBson, dumpToJson, dumpToJson, toMetricResults, toSchemaMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Codec
decode, decodeJson, encodeMethods inherited from interface RawJsonCodec
decodeJsonMethods inherited from interface SchemaConvertable
toSchema
-
Constructor Details
-
ExecutorMetricsRegistry
public ExecutorMetricsRegistry()
-
-
Method Details
-
encode
- Specified by:
encodein interfaceCodec<T extends ExecutorMetricsRegistry.ExecutorMetric>- Overrides:
encodein classMetricsRegistry<T extends ExecutorMetricsRegistry.ExecutorMetric>
-
register
public <R extends MetricProvider> ExecutorMetricsRegistry<T> register(String id, @Nonnull Function<T, R> func) - Overrides:
registerin classMetricsRegistry<T extends ExecutorMetricsRegistry.ExecutorMetric>
-
register
- Overrides:
registerin classMetricsRegistry<T extends ExecutorMetricsRegistry.ExecutorMetric>
-
register
- Overrides:
registerin classMetricsRegistry<T extends ExecutorMetricsRegistry.ExecutorMetric>
-
register
public <R> ExecutorMetricsRegistry<T> register(String id, Function<T, R> func, Function<R, MetricsRegistry<R>> codecFunc) - Overrides:
registerin classMetricsRegistry<T extends ExecutorMetricsRegistry.ExecutorMetric>
-