Example usage for org.springframework.batch.core.step.tasklet StoppableTasklet interface-usage

List of usage examples for org.springframework.batch.core.step.tasklet StoppableTasklet interface-usage

Introduction

In this page you can find the example usage for org.springframework.batch.core.step.tasklet StoppableTasklet interface-usage.

Usage

From source file org.springframework.batch.core.step.tasklet.SystemCommandTasklet.java

/**
 * {@link Tasklet} that executes a system command.
 *
 * The system command is executed asynchronously using injected
 * {@link #setTaskExecutor(TaskExecutor)} - timeout value is required to be set,
 * so that the batch job does not hang forever if the external process hangs.