Package net.javacrumbs.shedlock.core
Interface LockingTaskExecutor
-
- All Known Implementing Classes:
DefaultLockingTaskExecutor
public interface LockingTaskExecutor
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceLockingTaskExecutor.Taskstatic classLockingTaskExecutor.TaskResult<T>static interfaceLockingTaskExecutor.TaskWithResult<T>
-
Method Summary
Modifier and Type Method Description voidexecuteWithLock(@NotNull Runnable task, @NotNull LockConfiguration lockConfig)Executes task if it's not already running.voidexecuteWithLock(@NotNull LockingTaskExecutor.Task task, @NotNull LockConfiguration lockConfig)default <T> @NotNull LockingTaskExecutor.TaskResult<T>executeWithLock(@NotNull LockingTaskExecutor.TaskWithResult<T> task, @NotNull LockConfiguration lockConfig)Executes task.
-
-
-
Method Detail
-
executeWithLock
void executeWithLock(@NotNull @NotNull Runnable task, @NotNull @NotNull LockConfiguration lockConfig)Executes task if it's not already running.
-
executeWithLock
void executeWithLock(@NotNull @NotNull LockingTaskExecutor.Task task, @NotNull @NotNull LockConfiguration lockConfig) throws Throwable- Throws:
Throwable
-
executeWithLock
@NotNull default <T> @NotNull LockingTaskExecutor.TaskResult<T> executeWithLock(@NotNull @NotNull LockingTaskExecutor.TaskWithResult<T> task, @NotNull @NotNull LockConfiguration lockConfig) throws Throwable
Executes task.- Throws:
Throwable
-
-