org.springframework.integration.scheduling
Class AbstractMessagingTaskScheduler

java.lang.Object
  extended by org.springframework.integration.scheduling.AbstractMessagingTaskScheduler
All Implemented Interfaces:
org.springframework.context.Lifecycle, org.springframework.core.task.TaskExecutor, MessagingTaskScheduler, org.springframework.scheduling.SchedulingTaskExecutor
Direct Known Subclasses:
SimpleMessagingTaskScheduler

public abstract class AbstractMessagingTaskScheduler
extends java.lang.Object
implements MessagingTaskScheduler

Base class for MessagingTaskScheduler implementations.

Author:
Mark Fisher

Constructor Summary
AbstractMessagingTaskScheduler()
           
 
Method Summary
 void execute(java.lang.Runnable task)
          Submit a task to be run once.
 boolean prefersShortLivedTasks()
           
abstract  java.util.concurrent.ScheduledFuture<?> schedule(java.lang.Runnable task)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.integration.scheduling.MessagingTaskScheduler
setErrorHandler
 
Methods inherited from interface org.springframework.context.Lifecycle
isRunning, start, stop
 

Constructor Detail

AbstractMessagingTaskScheduler

public AbstractMessagingTaskScheduler()
Method Detail

prefersShortLivedTasks

public boolean prefersShortLivedTasks()
Specified by:
prefersShortLivedTasks in interface org.springframework.scheduling.SchedulingTaskExecutor

execute

public void execute(java.lang.Runnable task)
Submit a task to be run once.

Specified by:
execute in interface org.springframework.core.task.TaskExecutor

schedule

public abstract java.util.concurrent.ScheduledFuture<?> schedule(java.lang.Runnable task)
Specified by:
schedule in interface MessagingTaskScheduler