PersistJobDataAfterExecution (Quartz Parent POM 2.0.1 API)

Quartz Java



org.quartz Annotation Type PersistJobDataAfterExecution


@Documented
@Retention(value=RUNTIME)
@Target(value=TYPE)
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

Author:
jhouse
See Also:
DisallowConcurrentExecution



Copyright 2001-2011, Terracotta, Inc.