public abstract class AbstractPollableChannel extends AbstractMessageChannel implements PollableChannel
AbstractMessageChannel.ChannelInterceptorList
logger
Constructor and Description |
---|
AbstractPollableChannel() |
Modifier and Type | Method and Description |
---|---|
protected abstract Message<?> |
doReceive(long timeout)
Subclasses must implement this method.
|
Message<?> |
receive()
Receive the first available message from this channel.
|
Message<?> |
receive(long timeout)
Receive the first available message from this channel.
|
addInterceptor, doSend, getComponentType, getFullChannelName, getInterceptors, send, send, setConversionService, setDatatypes, setInterceptors, setShouldTrack
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
send, send
getComponentName
public final Message<?> receive()
receive
in interface PollableChannel
null
if the
receiving thread is interrupted.public final Message<?> receive(long timeout)
receive()
).receive
in interface PollableChannel
timeout
- the timeout in millisecondsnull
if no message
is available within the allotted time or the receiving thread is
interrupted.protected abstract Message<?> doReceive(long timeout)