public abstract class AbstractPollableChannel extends AbstractMessageChannel implements PollableChannel
AbstractMessageChannel.ChannelInterceptorListloggerINDEFINITE_TIMEOUT| 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, addInterceptor, doSend, getChannelInterceptors, getComponentType, getFullChannelName, getInterceptors, onInit, removeInterceptor, removeInterceptor, send, send, setConversionService, setDatatypes, setInterceptors, setMessageConverter, setShouldTrackafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setMessageBuilderFactory, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsend, sendgetComponentNamepublic final Message<?> receive()
receive in interface PollableChannelnull if the
receiving thread is interrupted.public final Message<?> receive(long timeout)
receive()).receive in interface PollableChanneltimeout - 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)
timeout - The timeout.