Class MeterFactory<T extends IpdMeter>
java.lang.Object
com.atlassian.diagnostics.ipd.api.meters.config.MeterFactory<T>
- Type Parameters:
T- the implementation ofIpdMeterthat this factory creates
Factory for creating
IpdMeter instances.- Since:
- 5.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionMeterFactory(Function<MeterConfig, T> factory, String typeId, String typeSuffix) -
Method Summary
-
Constructor Details
-
MeterFactory
- Parameters:
factory- Function that creates a new instance of the meter for a givenMeterConfigtypeId- the typeId of the meter is a string value unique to the type of the meter, should be the same for compatible meterstypeSuffix- the suffix of the type of the meter. This suffix is added at the end of the meter name when it is registered.
-
-
Method Details
-
createMetric
-
typeSuffix
-
getTypeId
-