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]
Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • Wists
  • LinkedIn
  • Slashdot
  • Google Bookmarks
  • Reddit
  • StumbleUpon
  • email
  • Twitter
  • FriendFeed

Related posts:

  1. DistributableEventPublisher for Spring via JGroups
  2. Runtime Java Stack
  3. Spring is totally losing its invisibility
  4. Grails 101:GroovyBlogs.org
  5. Executors.newFixedThreadPool(n) – Suspended Threads

  1. No comments yet.

  1. No trackbacks yet.