Class PerPollEventSource<R,P 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.AbstractEventSource
cn.sliew.carp.module.kubernetes.watch.source.event.source.AbstractResourceEventSource<R,P>
cn.sliew.carp.module.kubernetes.watch.source.event.source.poll.PerPollEventSource<R,P>
- All Implemented Interfaces:
EventSource,ResourceEventAware<P>,ResourceEventSource<R,,P> cn.sliew.milky.common.lifecycle.LifeCycle
public class PerPollEventSource<R,P extends io.fabric8.kubernetes.api.model.HasMetadata>
extends AbstractResourceEventSource<R,P>
implements ResourceEventAware<P>
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel(ResourceID resourceID) protected voidprotected voiddoStart()protected voiddoStop()voidonResourceCreated(P resource) voidonResourceDeleted(P resource) voidonResourceUpdated(P newResource, P oldResource) voidMethods inherited from class cn.sliew.carp.module.kubernetes.watch.source.event.source.AbstractResourceEventSource
getResourceTypeMethods inherited from class cn.sliew.milky.common.lifecycle.AbstractLifeCycle
addLifeCycleListener, getState, initialize, isStarted, isStopped, removeLifeCycleListener, start, stop, stop, supportInitialize, supportStart, supportStopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cn.sliew.milky.common.lifecycle.LifeCycle
addLifeCycleListener, getState, initialize, isStarted, isStopped, removeLifeCycleListener, start, stop, stop, supportInitialize, supportStart, supportStop
-
Constructor Details
-
PerPollEventSource
-
-
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
-
onResourceCreated
- Specified by:
onResourceCreatedin interfaceResourceEventAware<R>
-
onResourceUpdated
- Specified by:
onResourceUpdatedin interfaceResourceEventAware<R>
-
onResourceDeleted
- Specified by:
onResourceDeletedin interfaceResourceEventAware<R>
-
schedule
-
cancel
-