| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.channel.AbstractMessageChannel
org.springframework.integration.channel.AbstractPollableChannel
public abstract class AbstractPollableChannel
Base class for all pollable channels.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class org.springframework.integration.channel.AbstractMessageChannel | 
|---|
AbstractMessageChannel.ChannelInterceptorList | 
| Constructor Summary | |
|---|---|
AbstractPollableChannel()
 | 
|
| Method Summary | |
|---|---|
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.  | 
| Methods inherited from class org.springframework.integration.channel.AbstractMessageChannel | 
|---|
addInterceptor, doSend, getComponentType, getInterceptors, send, send, setConversionService, setDatatypes, setInterceptors, setShouldTrack | 
| Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport | 
|---|
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, onInit, setBeanFactory, setBeanName, setComponentName, setTaskScheduler, toString | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface org.springframework.integration.MessageChannel | 
|---|
send, send | 
| Methods inherited from interface org.springframework.integration.context.NamedComponent | 
|---|
getComponentName | 
| Constructor Detail | 
|---|
public AbstractPollableChannel()
| Method Detail | 
|---|
public 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 milliseconds
null if no message
 is available within the allotted time or the receiving thread is
 interrupted.protected abstract Message<?> doReceive(long timeout)
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||