org.springframework.integration.dispatcher
Class PollingDispatcherTask

java.lang.Object
  extended by org.springframework.integration.dispatcher.PollingDispatcherTask
All Implemented Interfaces:
java.lang.Runnable, MessagingTask

public class PollingDispatcherTask
extends java.lang.Object
implements MessagingTask

A MessagingTask that combines polling and dispatching.

Author:
Mark Fisher

Field Summary
private  PollingDispatcher dispatcher
           
private  Schedule schedule
           
 
Constructor Summary
PollingDispatcherTask(PollingDispatcher dispatcher, Schedule schedule)
           
 
Method Summary
 PollingDispatcher getDispatcher()
           
 Schedule getSchedule()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dispatcher

private final PollingDispatcher dispatcher

schedule

private final Schedule schedule
Constructor Detail

PollingDispatcherTask

public PollingDispatcherTask(PollingDispatcher dispatcher,
                             Schedule schedule)
Method Detail

getDispatcher

public PollingDispatcher getDispatcher()

getSchedule

public Schedule getSchedule()
Specified by:
getSchedule in interface MessagingTask

run

public void run()
Specified by:
run in interface java.lang.Runnable