Class InformerFactoryLifecycleListener

java.lang.Object
io.micronaut.kubernetes.client.informer.InformerFactoryLifecycleListener

@Requires(beans=SharedIndexInformerFactory.class) @Singleton @Internal public class InformerFactoryLifecycleListener extends Object
Starts up and shuts down the SharedIndexInformerFactory.
Since:
3.1
Author:
Pavol Gressa
  • Constructor Details

  • Method Details

    • startInformerFactoryOnStartupEvent

      @EventListener public void startInformerFactoryOnStartupEvent(io.micronaut.context.event.StartupEvent startupEvent)
      Start informer factory on startup event.
      Parameters:
      startupEvent - startup event
    • shutdown

      @EventListener public void shutdown(io.micronaut.context.event.ShutdownEvent shutdownEvent)
      Shutdown informer factory on shutdown event.
      Parameters:
      shutdownEvent - shutdown event