Class CustomMeter.MBeanSupplier<BEAN_TYPE>
java.lang.Object
com.atlassian.diagnostics.ipd.api.meters.CustomMeter.MBeanSupplier<BEAN_TYPE>
- Type Parameters:
BEAN_TYPE-
- Direct Known Subclasses:
IpdLongBucketsCounter.LongBucketsDefinition,IpdStringBucketsCounter.StringBucketsDefinition
- Enclosing interface:
CustomMeter<T>
Helper class which supplies a new instance of CustomMBean.
See example implementation:
IpdLongBucketsCounter.LongBucketsDefinition
IpdStringBucketsCounter.StringBucketsDefinition-
Constructor Summary
ConstructorsConstructorDescriptionMBeanSupplier(Class<BEAN_TYPE> beanType) A supplier which creates a new instance of CustomMBean with default constructor.MBeanSupplier(Class<BEAN_TYPE> beanType, Supplier<BEAN_TYPE> mBeanSupplier) A supplier which creates a new instance of CustomMBean with a custom supplier. -
Method Summary
-
Constructor Details
-
MBeanSupplier
A supplier which creates a new instance of CustomMBean with a custom supplier.- Parameters:
beanType- class of the CustomMBeanmBeanSupplier- supplier of the CustomMBean
-
MBeanSupplier
A supplier which creates a new instance of CustomMBean with default constructor.- Parameters:
beanType- class of the CustomMBean, must have a default constructor
-
-
Method Details
-
getBeanType
-
createInstance
-