Class CdiMetricsRegistryAdapter

  • All Implemented Interfaces:
    com.tangosol.net.metrics.MetricsRegistryAdapter

    public class CdiMetricsRegistryAdapter
    extends Object
    implements com.tangosol.net.metrics.MetricsRegistryAdapter
    Bridges the gap between ServiceLoader and CDI, by registering itself as a service and delegating to all discovered CDI beans that implement MetricsRegistryAdapter interface.
    Since:
    20.06
    Author:
    Aleks Seovic 2020.05.04
    • Constructor Detail

      • CdiMetricsRegistryAdapter

        public CdiMetricsRegistryAdapter()
    • Method Detail

      • register

        public void register​(com.tangosol.net.metrics.MBeanMetric metric)
        Description copied from interface: com.tangosol.net.metrics.MetricsRegistryAdapter
        Register a metric.
        Specified by:
        register in interface com.tangosol.net.metrics.MetricsRegistryAdapter
        Parameters:
        metric - the MBeanMetric to register
      • remove

        public void remove​(com.tangosol.net.metrics.MBeanMetric.Identifier identifier)
        Description copied from interface: com.tangosol.net.metrics.MetricsRegistryAdapter
        Remove a metric.
        Specified by:
        remove in interface com.tangosol.net.metrics.MetricsRegistryAdapter
        Parameters:
        identifier - the MBeanMetric.Identifier of th metric to be removed