org.springframework.integration.jms
Class SubscribableJmsChannel
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.channel.AbstractMessageChannel
org.springframework.integration.jms.AbstractJmsChannel
org.springframework.integration.jms.SubscribableJmsChannel
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, Lifecycle, Phased, SmartLifecycle, NamedComponent, SubscribableChannel, TrackableComponent, MessageChannel
public class SubscribableJmsChannel
- extends AbstractJmsChannel
- implements SubscribableChannel, SmartLifecycle, DisposableBean
- Since:
- 2.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SubscribableJmsChannel
public SubscribableJmsChannel(AbstractMessageListenerContainer container,
JmsTemplate jmsTemplate)
subscribe
public boolean subscribe(MessageHandler handler)
- Description copied from interface:
SubscribableChannel
- Register a
MessageHandler as a subscriber to this channel.
- Specified by:
subscribe in interface SubscribableChannel
unsubscribe
public boolean unsubscribe(MessageHandler handler)
- Description copied from interface:
SubscribableChannel
- Remove a
MessageHandler from the subscribers of this channel.
- Specified by:
unsubscribe in interface SubscribableChannel
onInit
public void onInit()
throws java.lang.Exception
- Description copied from class:
IntegrationObjectSupport
- Subclasses may implement this for initialization logic.
- Overrides:
onInit in class IntegrationObjectSupport
- Throws:
java.lang.Exception
isAutoStartup
public boolean isAutoStartup()
- Specified by:
isAutoStartup in interface SmartLifecycle
getPhase
public int getPhase()
- Specified by:
getPhase in interface Phased
isRunning
public boolean isRunning()
- Specified by:
isRunning in interface Lifecycle
start
public void start()
- Specified by:
start in interface Lifecycle
stop
public void stop()
- Specified by:
stop in interface Lifecycle
stop
public void stop(java.lang.Runnable callback)
- Specified by:
stop in interface SmartLifecycle
destroy
public void destroy()
throws java.lang.Exception
- Specified by:
destroy in interface DisposableBean
- Throws:
java.lang.Exception