Class StandbyComponent

    • Field Detail

      • registry

        protected io.dropwizard.metrics5.MetricRegistry registry
      • active

        protected final io.dropwizard.metrics5.Counter active
      • meter

        protected final io.dropwizard.metrics5.Meter meter
      • timer

        protected final io.dropwizard.metrics5.Timer timer
      • holder

        protected final ThreadLocal<io.dropwizard.metrics5.Timer.Context> holder
    • Constructor Detail

      • StandbyComponent

        public StandbyComponent()
    • Method Detail

      • activate

        public void activate​(ComponentContext context)
        Description copied from interface: Component
        Activates the component.

        This method is called by the runtime when a component is activated.

        Specified by:
        activate in interface Component
        Overrides:
        activate in class DefaultComponent
        Parameters:
        context - the runtime context
      • deactivate

        public void deactivate​(ComponentContext context)
        Description copied from interface: Component
        Deactivates the component.

        This method is called by the runtime when a component is deactivated.

        Specified by:
        deactivate in interface Component
        Overrides:
        deactivate in class DefaultComponent
        Parameters:
        context - the runtime context