O - the object type being managed by this LifecycleManagerpublic abstract class SimpleLifecycleManager<O> extends AbstractLifecycleManager<O>
LifecycleManager implementation is designed to track the lifecycle of objects that implement any of the
Initialisable, Startable, Stoppable or Disposable interfaces.
Also, adds convenience methods for firing these phases by callbacks.
completedPhases, currentPhase, executingPhase, lifecycleManagerId, logger, object, phaseNames, state| Constructor and Description |
|---|
SimpleLifecycleManager(String id,
O object) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
fireDisposePhase(LifecycleCallback<O> callback) |
abstract void |
fireInitialisePhase(LifecycleCallback<O> callback) |
void |
fireLifecycle(String phase)
Applies lifecycle phase to a collection of objects.
|
abstract void |
fireStartPhase(LifecycleCallback<O> callback) |
abstract void |
fireStopPhase(LifecycleCallback<O> callback) |
protected void |
registerTransitions() |
addDirectTransition, applyCompletedPhases, applyPhase, checkPhase, createLifecycleState, doOnConnectException, getCurrentPhase, getExecutingPhase, getLastPhaseExecuted, getLifecycleObject, getState, invokePhase, isDirectTransition, isDirectTransition, isLastPhaseExecutionFailed, isPhaseComplete, notifyTransition, registerLifecycleCallback, reset, setCurrentPhase, setExecutingPhaseprotected void registerTransitions()
registerTransitions in class AbstractLifecycleManager<O>public void fireLifecycle(String phase) throws org.mule.runtime.api.lifecycle.LifecycleException
LifecycleManagerfireLifecycle in interface LifecycleManagerfireLifecycle in class AbstractLifecycleManager<O>phase - that phase to execute nextorg.mule.runtime.api.lifecycle.LifecycleException - if the phase is not a valid transition of does not exist on this lifecycle managerpublic abstract void fireInitialisePhase(LifecycleCallback<O> callback) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic abstract void fireStartPhase(LifecycleCallback<O> callback) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic abstract void fireStopPhase(LifecycleCallback<O> callback) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic abstract void fireDisposePhase(LifecycleCallback<O> callback) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.