public class EventSourceConsumerProcess
extends java.lang.Object
implements org.springframework.context.SmartLifecycle
| Constructor and Description |
|---|
EventSourceConsumerProcess(java.util.List<EventSource> eventSources) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPhase() |
void |
handleContextRefresh(org.springframework.context.event.ContextRefreshedEvent event) |
boolean |
isAutoStartup() |
boolean |
isRunning()
Check whether this component is currently running.
|
void |
start() |
void |
stop() |
void |
stop(java.lang.Runnable callback) |
public EventSourceConsumerProcess(java.util.List<EventSource> eventSources)
@EventListener public void handleContextRefresh(org.springframework.context.event.ContextRefreshedEvent event)
public boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void stop(java.lang.Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic int getPhase()
getPhase in interface org.springframework.context.Phasedpublic void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
In the case of a container, this will return true only if all
components that apply are currently running.
isRunning in interface org.springframework.context.Lifecycle