org.springframework.integration.scheduling.spi
Interface ScheduleServiceProvider
- All Known Implementing Classes:
- QuartzScheduleServiceProvider, SimpleScheduleServiceProvider
public interface ScheduleServiceProvider
An SPI interface providing an abstraction of thread pooling and scheduling operations, allowing to switch between
different platforms (such as Java 5's java.util.concurrent, Quartz, etc) at runtime.
- Author:
- Marius Bogoevici
Method Summary |
void |
execute(java.lang.Runnable runnable)
|
java.util.concurrent.ScheduledFuture<?> |
scheduleAtFixedRate(java.lang.Runnable runnable,
long initialDelay,
long period,
java.util.concurrent.TimeUnit timeUnit)
|
java.util.concurrent.ScheduledFuture<?> |
scheduleWithCronExpression(java.lang.Runnable runnable,
java.lang.String cronExpression)
|
java.util.concurrent.ScheduledFuture<?> |
scheduleWithFixedDelay(java.lang.Runnable runnable,
long initialDelay,
long delay,
java.util.concurrent.TimeUnit timeUnit)
|
java.util.concurrent.ScheduledFuture<?> |
scheduleWithInitialDelay(java.lang.Runnable runnable,
long initialDelay,
java.util.concurrent.TimeUnit timeUnit)
|
void |
shutdown(boolean waitForTasksToCompleteOnShutdown)
|
execute
void execute(java.lang.Runnable runnable)
shutdown
void shutdown(boolean waitForTasksToCompleteOnShutdown)
scheduleWithInitialDelay
java.util.concurrent.ScheduledFuture<?> scheduleWithInitialDelay(java.lang.Runnable runnable,
long initialDelay,
java.util.concurrent.TimeUnit timeUnit)
throws java.lang.Exception
- Throws:
java.lang.Exception
scheduleAtFixedRate
java.util.concurrent.ScheduledFuture<?> scheduleAtFixedRate(java.lang.Runnable runnable,
long initialDelay,
long period,
java.util.concurrent.TimeUnit timeUnit)
throws java.lang.Exception
- Throws:
java.lang.Exception
scheduleWithFixedDelay
java.util.concurrent.ScheduledFuture<?> scheduleWithFixedDelay(java.lang.Runnable runnable,
long initialDelay,
long delay,
java.util.concurrent.TimeUnit timeUnit)
throws java.lang.Exception
- Throws:
java.lang.Exception
scheduleWithCronExpression
java.util.concurrent.ScheduledFuture<?> scheduleWithCronExpression(java.lang.Runnable runnable,
java.lang.String cronExpression)
throws java.lang.Exception
- Throws:
java.lang.Exception