Class MessageQueueConsumerProcess
java.lang.Object
de.otto.synapse.endpoint.receiver.MessageQueueConsumerProcess
- All Implemented Interfaces:
org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
public class MessageQueueConsumerProcess
extends java.lang.Object
implements org.springframework.context.SmartLifecycle
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MessageQueueConsumerProcess(java.util.List<MessageQueueReceiverEndpoint> messageQueueReceiverEndpoints) -
Method Summary
-
Constructor Details
-
MessageQueueConsumerProcess
public MessageQueueConsumerProcess(java.util.List<MessageQueueReceiverEndpoint> messageQueueReceiverEndpoints)
-
-
Method Details
-
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
-