public class PollableJmsChannel extends AbstractJmsChannel implements PollableChannel
AbstractMessageChannel.ChannelInterceptorListlogger| Constructor and Description |
|---|
PollableJmsChannel(org.springframework.jms.core.JmsTemplate jmsTemplate) |
| Modifier and Type | Method and Description |
|---|---|
Message<?> |
receive()
Receive a message from this channel, blocking indefinitely if necessary.
|
Message<?> |
receive(long timeout)
Receive a message from this channel, blocking until either a message is
available or the specified timeout period elapses.
|
void |
setMessageSelector(java.lang.String messageSelector) |
doSendaddInterceptor, getComponentType, getFullChannelName, getInterceptors, send, send, setConversionService, setDatatypes, setInterceptors, setShouldTrackafterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsend, sendgetComponentNamepublic PollableJmsChannel(org.springframework.jms.core.JmsTemplate jmsTemplate)
public void setMessageSelector(java.lang.String messageSelector)
public Message<?> receive()
PollableChannelreceive in interface PollableChannelMessage or null if interruptedpublic Message<?> receive(long timeout)
PollableChannelreceive in interface PollableChanneltimeout - the timeout in millisecondsMessage or null if the
specified timeout period elapses or the message reception is interrupted