public class LockableTaskScheduler extends Object implements org.springframework.scheduling.TaskScheduler, org.springframework.beans.factory.DisposableBean
LockableRunnable and delegates all calls to a TaskScheduler.| Constructor and Description |
|---|
LockableTaskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler,
LockManager lockManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
ScheduledFuture<?> |
schedule(Runnable task,
Date startTime) |
ScheduledFuture<?> |
schedule(Runnable task,
Instant startTime) |
ScheduledFuture<?> |
schedule(Runnable task,
org.springframework.scheduling.Trigger trigger) |
ScheduledFuture<?> |
scheduleAtFixedRate(Runnable task,
Date startTime,
long period) |
ScheduledFuture<?> |
scheduleAtFixedRate(Runnable task,
Duration period) |
ScheduledFuture<?> |
scheduleAtFixedRate(Runnable task,
Instant startTime,
Duration period) |
ScheduledFuture<?> |
scheduleAtFixedRate(Runnable task,
long period) |
ScheduledFuture<?> |
scheduleWithFixedDelay(Runnable task,
Date startTime,
long delay) |
ScheduledFuture<?> |
scheduleWithFixedDelay(Runnable task,
Duration delay) |
ScheduledFuture<?> |
scheduleWithFixedDelay(Runnable task,
Instant startTime,
Duration delay) |
ScheduledFuture<?> |
scheduleWithFixedDelay(Runnable task,
long delay) |
public LockableTaskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler,
LockManager lockManager)
public ScheduledFuture<?> schedule(Runnable task, org.springframework.scheduling.Trigger trigger)
schedule in interface org.springframework.scheduling.TaskSchedulerpublic ScheduledFuture<?> schedule(Runnable task, Date startTime)
schedule in interface org.springframework.scheduling.TaskSchedulerpublic ScheduledFuture<?> scheduleAtFixedRate(Runnable task, Date startTime, long period)
scheduleAtFixedRate in interface org.springframework.scheduling.TaskSchedulerpublic ScheduledFuture<?> scheduleAtFixedRate(Runnable task, long period)
scheduleAtFixedRate in interface org.springframework.scheduling.TaskSchedulerpublic ScheduledFuture<?> scheduleWithFixedDelay(Runnable task, Date startTime, long delay)
scheduleWithFixedDelay in interface org.springframework.scheduling.TaskSchedulerpublic ScheduledFuture<?> scheduleWithFixedDelay(Runnable task, long delay)
scheduleWithFixedDelay in interface org.springframework.scheduling.TaskSchedulerpublic ScheduledFuture<?> schedule(Runnable task, Instant startTime)
schedule in interface org.springframework.scheduling.TaskSchedulerpublic ScheduledFuture<?> scheduleAtFixedRate(Runnable task, Instant startTime, Duration period)
scheduleAtFixedRate in interface org.springframework.scheduling.TaskSchedulerpublic ScheduledFuture<?> scheduleAtFixedRate(Runnable task, Duration period)
scheduleAtFixedRate in interface org.springframework.scheduling.TaskSchedulerpublic ScheduledFuture<?> scheduleWithFixedDelay(Runnable task, Instant startTime, Duration delay)
scheduleWithFixedDelay in interface org.springframework.scheduling.TaskSchedulerpublic ScheduledFuture<?> scheduleWithFixedDelay(Runnable task, Duration delay)
scheduleWithFixedDelay in interface org.springframework.scheduling.TaskSchedulerCopyright © 2019. All rights reserved.