Class ResourcelessJobRepository

java.lang.Object
org.springframework.batch.core.repository.support.ResourcelessJobRepository
All Implemented Interfaces:
JobRepository

public class ResourcelessJobRepository extends Object implements JobRepository
A JobRepository implementation that does not use or store batch meta-data. It is intended for use-cases where restartability is not required and where the execution context is not involved in any way (like sharing data between steps through the execution context, or partitioned steps where partitions meta-data is shared between the manager and workers through the execution context, etc).
This implementation holds a single job instance and a corresponding job execution that are suitable for one-time jobs executed in their own JVM. This job repository works with transactional steps as well as non-transactional steps (in which case, a ResourcelessTransactionManager can be used).
This implementation is not thread-safe and should not be used in any concurrent environment.
Since:
5.2.0
Author:
Mahmoud Ben Hassine