Interface Lifecycle
- All Known Subinterfaces:
DurableQueueConsumer,DurableQueues,FencedLockManager
- All Known Implementing Classes:
DBFencedLockManager,DefaultDurableQueueConsumer,DurableLocalCommandBus
public interface Lifecycle
Common process life cycle interface
-
Method Summary
-
Method Details
-
start
void start()Start the processing. This operation must be idempotent, such that duplicate calls tostart()for an already started process (whereisStarted()returns true) is ignored -
stop
void stop()Stop the processing. This operation must be idempotent, such that duplicate calls tostop()for an already stopped process (whereisStarted()returns false) is ignored -
isStarted
boolean isStarted()Returns true if the process is started- Returns:
- true if the process is started otherwise false
-