Quartz Concurrent Job execution-StatefulJob

To prevent concurrent job execution for long running jobs, you should implement org.quartz.StatefulJob which is just a marker interface. By this interface quartz understands and waits until it finishes it’s execution.

In other words, it is same with java synchronized keyword :)


public MyOnlySingleThreadJob implements StatefulJob {

}

ref:quartz project

Reblog this post [with Zemanta]

Related Posts

  1. Runtime Java Stack
  2. Grails 101:GroovyBlogs.org
  1. No comments yet.

  1. No trackbacks yet.