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 Summary
ConstructorDescriptionInformerFactoryLifecycleListener
(SharedIndexInformerFactory sharedSharedIndexInformerFactory) Creates theInformerFactoryLifecycleListener
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
shutdown
(io.micronaut.context.event.ShutdownEvent shutdownEvent) Shutdown informer factory on shutdown event.void
startInformerFactoryOnStartupEvent
(io.micronaut.context.event.StartupEvent startupEvent) Start informer factory on startup event.
-
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
-