Class InformerWrapper<T extends io.fabric8.kubernetes.api.model.HasMetadata>
java.lang.Object
cn.sliew.milky.common.lifecycle.AbstractLifeCycle
cn.sliew.carp.module.kubernetes.watch.source.event.source.informer.InformerWrapper<T>
- All Implemented Interfaces:
cn.sliew.milky.common.lifecycle.LifeCycle
public class InformerWrapper<T extends io.fabric8.kubernetes.api.model.HasMetadata>
extends cn.sliew.milky.common.lifecycle.AbstractLifeCycle
-
Nested Class Summary
Nested classes/interfaces inherited from interface cn.sliew.milky.common.lifecycle.LifeCycle
cn.sliew.milky.common.lifecycle.LifeCycle.LifeCycleResult, cn.sliew.milky.common.lifecycle.LifeCycle.LifeCycleSupportResult, cn.sliew.milky.common.lifecycle.LifeCycle.State -
Constructor Summary
ConstructorsConstructorDescriptionInformerWrapper(io.fabric8.kubernetes.client.informers.SharedIndexInformer<T> informer, String namespace) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventHandler(io.fabric8.kubernetes.client.informers.ResourceEventHandler<T> eventHandler) protected voidprotected voiddoStart()protected voiddoStop()Methods inherited from class cn.sliew.milky.common.lifecycle.AbstractLifeCycle
addLifeCycleListener, getState, initialize, isStarted, isStopped, removeLifeCycleListener, start, stop, stop, supportInitialize, supportStart, supportStop
-
Constructor Details
-
Method Details
-
doInitialize
protected void doInitialize()- Specified by:
doInitializein classcn.sliew.milky.common.lifecycle.AbstractLifeCycle
-
doStart
protected void doStart()- Specified by:
doStartin classcn.sliew.milky.common.lifecycle.AbstractLifeCycle
-
doStop
protected void doStop()- Specified by:
doStopin classcn.sliew.milky.common.lifecycle.AbstractLifeCycle
-
addEventHandler
public void addEventHandler(io.fabric8.kubernetes.client.informers.ResourceEventHandler<T> eventHandler)
-