Annotation Type PersistJobDataAfterExecution

public @interface PersistJobDataAfterExecution

An annotation that marks a Job class as one that makes updates to its JobDataMap during execution, and wishes the scheduler to re-store the JobDataMap when execution completes.

Jobs that are marked with this annotation should also seriously consider using the DisallowConcurrentExecution annotation, to avoid data storage race conditions with concurrently executing job instances.

This can be used in lieu of implementing the StatefulJob marker interface that was used prior to Quartz 2.0

See Also:

Copyright 2001-2019, Terracotta, Inc.