public abstract class AbstractGPFDistMessageHandler
extends org.springframework.integration.handler.AbstractMessageHandler
implements org.springframework.context.SmartLifecycle
MessageHandler
handling Message
.Constructor and Description |
---|
AbstractGPFDistMessageHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart()
Subclasses may override this method with the start behaviour.
|
protected void |
doStop()
Subclasses may override this method with the stop behaviour.
|
protected abstract void |
doWrite(org.springframework.messaging.Message<?> message)
Subclasses need to implement this method to handle
Message in its writer. |
int |
getPhase() |
protected void |
handleMessageInternal(org.springframework.messaging.Message<?> message) |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
setAutoStartup(boolean autoStartup)
Sets the auto startup.
|
void |
setPhase(int phase)
Sets the phase.
|
void |
start() |
void |
stop() |
void |
stop(java.lang.Runnable callback) |
getComponentType, getOrder, handleMessage, setOrder, setShouldTrack
afterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toString
public final boolean isAutoStartup()
isAutoStartup
in interface org.springframework.context.SmartLifecycle
public final int getPhase()
getPhase
in interface org.springframework.context.Phased
public final boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
public final void start()
start
in interface org.springframework.context.Lifecycle
public final void stop()
stop
in interface org.springframework.context.Lifecycle
public final void stop(java.lang.Runnable callback)
stop
in interface org.springframework.context.SmartLifecycle
protected final void handleMessageInternal(org.springframework.messaging.Message<?> message) throws java.lang.Exception
handleMessageInternal
in class org.springframework.integration.handler.AbstractMessageHandler
java.lang.Exception
public void setAutoStartup(boolean autoStartup)
autoStartup
- the new auto startupSmartLifecycle
public void setPhase(int phase)
phase
- the new phaseSmartLifecycle
protected void doStart()
lifecycleLock
.protected void doStop()
lifecycleLock
.protected abstract void doWrite(org.springframework.messaging.Message<?> message) throws java.lang.Exception
Message
in its writer.message
- the message to writejava.lang.Exception