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>

public static class CustomMeter.MBeanSupplier<BEAN_TYPE> extends Object
Helper class which supplies a new instance of CustomMBean. See example implementation:
IpdLongBucketsCounter.LongBucketsDefinition IpdStringBucketsCounter.StringBucketsDefinition
  • Constructor Details

    • MBeanSupplier

      public MBeanSupplier(Class<BEAN_TYPE> beanType, Supplier<BEAN_TYPE> mBeanSupplier)
      A supplier which creates a new instance of CustomMBean with a custom supplier.
      Parameters:
      beanType - class of the CustomMBean
      mBeanSupplier - supplier of the CustomMBean
    • MBeanSupplier

      public MBeanSupplier(Class<BEAN_TYPE> beanType)
      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