public class ComplexMetrics extends Object
Constructor and Description |
---|
ComplexMetrics() |
Modifier and Type | Method and Description |
---|---|
static ComplexMetricSerde |
getSerdeForType(String type) |
static void |
registerSerde(String type,
ComplexMetricSerde serde)
Register a serde name -> ComplexMetricSerde mapping.
|
static void |
unregisterSerde(String type)
Unregister a serde name -> ComplexMetricSerde mapping.
|
@Nullable public static ComplexMetricSerde getSerdeForType(String type)
public static void registerSerde(String type, ComplexMetricSerde serde)
If the specified serde key string is already used and the supplied ComplexMetricSerde is not of the same type as the existing value in the map for said key, an ISE is thrown.
type
- The serde name used as the key in the map.serde
- The ComplexMetricSerde object to be associated with the 'type' in the map.public static void unregisterSerde(String type)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.