Package de.otto.synapse.eventsource
Class EventSourceConsumerProcess
- java.lang.Object
-
- de.otto.synapse.eventsource.EventSourceConsumerProcess
-
- All Implemented Interfaces:
org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
public class EventSourceConsumerProcess extends java.lang.Object implements org.springframework.context.SmartLifecycle
-
-
Constructor Summary
Constructors Constructor Description EventSourceConsumerProcess(java.util.List<EventSource> eventSources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPhase()booleanisAutoStartup()booleanisRunning()Check whether this component is currently running.voidstart()voidstop()voidstop(java.lang.Runnable callback)
-
-
-
Constructor Detail
-
EventSourceConsumerProcess
public EventSourceConsumerProcess(java.util.List<EventSource> eventSources)
-
-
Method Detail
-
isAutoStartup
public boolean isAutoStartup()
- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle
-
stop
public void stop(java.lang.Runnable callback)
- Specified by:
stopin interfaceorg.springframework.context.SmartLifecycle
-
getPhase
public int getPhase()
- Specified by:
getPhasein interfaceorg.springframework.context.Phased- Specified by:
getPhasein interfaceorg.springframework.context.SmartLifecycle
-
start
public void start()
- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()
- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()
Check whether this component is currently running.In the case of a container, this will return
trueonly if all components that apply are currently running.- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle- Returns:
- whether the component is currently running
-
-