Enum Class的使用
org.apache.pulsar.client.impl.metrics.Unit
使用Unit的程序包
-
org.apache.pulsar.client.impl.metrics中Unit的使用
修饰符和类型方法说明static UnitReturns the enum constant of this class with the specified name.static Unit[]Unit.values()Returns an array containing the constants of this enum class, in the order they are declared.修饰符和类型方法说明InstrumentProvider.newCounter(String name, Unit unit, String description, String topic, io.opentelemetry.api.common.Attributes attributes) InstrumentProvider.newUpDownCounter(String name, Unit unit, String description, String topic, io.opentelemetry.api.common.Attributes attributes)