Package net.javacrumbs.shedlock.spring
Class LockableTaskScheduler
- java.lang.Object
-
- net.javacrumbs.shedlock.spring.LockableTaskScheduler
-
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean,org.springframework.scheduling.TaskScheduler
public class LockableTaskScheduler extends Object implements org.springframework.scheduling.TaskScheduler, org.springframework.beans.factory.DisposableBean
Wraps a all tasks toLockableRunnableand delegates all calls to aTaskScheduler.
-
-
Constructor Summary
Constructors Constructor Description LockableTaskScheduler(@NotNull org.springframework.scheduling.TaskScheduler taskScheduler, @NotNull LockManager lockManager)
-
Method Summary
Modifier and Type Method Description voiddestroy()ScheduledFuture<?>schedule(Runnable task, Instant startTime)ScheduledFuture<?>schedule(Runnable task, Date startTime)ScheduledFuture<?>schedule(Runnable task, org.springframework.scheduling.Trigger trigger)ScheduledFuture<?>scheduleAtFixedRate(Runnable task, long period)ScheduledFuture<?>scheduleAtFixedRate(Runnable task, Duration period)ScheduledFuture<?>scheduleAtFixedRate(Runnable task, Instant startTime, Duration period)ScheduledFuture<?>scheduleAtFixedRate(Runnable task, Date startTime, long period)ScheduledFuture<?>scheduleWithFixedDelay(Runnable task, long delay)ScheduledFuture<?>scheduleWithFixedDelay(Runnable task, Duration delay)ScheduledFuture<?>scheduleWithFixedDelay(Runnable task, Instant startTime, Duration delay)ScheduledFuture<?>scheduleWithFixedDelay(Runnable task, Date startTime, long delay)
-
-
-
Constructor Detail
-
LockableTaskScheduler
public LockableTaskScheduler(@NotNull @NotNull org.springframework.scheduling.TaskScheduler taskScheduler, @NotNull @NotNull LockManager lockManager)
-
-
Method Detail
-
schedule
public ScheduledFuture<?> schedule(Runnable task, org.springframework.scheduling.Trigger trigger)
- Specified by:
schedulein interfaceorg.springframework.scheduling.TaskScheduler
-
schedule
public ScheduledFuture<?> schedule(Runnable task, Date startTime)
- Specified by:
schedulein interfaceorg.springframework.scheduling.TaskScheduler
-
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Runnable task, Date startTime, long period)
- Specified by:
scheduleAtFixedRatein interfaceorg.springframework.scheduling.TaskScheduler
-
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Runnable task, long period)
- Specified by:
scheduleAtFixedRatein interfaceorg.springframework.scheduling.TaskScheduler
-
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable task, Date startTime, long delay)
- Specified by:
scheduleWithFixedDelayin interfaceorg.springframework.scheduling.TaskScheduler
-
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable task, long delay)
- Specified by:
scheduleWithFixedDelayin interfaceorg.springframework.scheduling.TaskScheduler
-
schedule
public ScheduledFuture<?> schedule(Runnable task, Instant startTime)
- Specified by:
schedulein interfaceorg.springframework.scheduling.TaskScheduler
-
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Runnable task, Instant startTime, Duration period)
- Specified by:
scheduleAtFixedRatein interfaceorg.springframework.scheduling.TaskScheduler
-
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Runnable task, Duration period)
- Specified by:
scheduleAtFixedRatein interfaceorg.springframework.scheduling.TaskScheduler
-
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable task, Instant startTime, Duration delay)
- Specified by:
scheduleWithFixedDelayin interfaceorg.springframework.scheduling.TaskScheduler
-
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable task, Duration delay)
- Specified by:
scheduleWithFixedDelayin interfaceorg.springframework.scheduling.TaskScheduler
-
-