jBPM distribution 6.0.0.CR3

org.jbpm.persistence.timer
Class GlobalJpaTimerJobInstance

java.lang.Object
  extended by org.drools.core.time.impl.DefaultTimerJobInstance
      extended by org.drools.persistence.jpa.JpaTimerJobInstance
          extended by org.jbpm.persistence.timer.GlobalJpaTimerJobInstance
All Implemented Interfaces:
Serializable, Comparable<org.drools.core.time.impl.DefaultTimerJobInstance>, Callable<Void>, org.drools.core.time.impl.TimerJobInstance

public class GlobalJpaTimerJobInstance
extends org.drools.persistence.jpa.JpaTimerJobInstance

Extension to the regular JpaTimerJobInstance that makes use of GlobalTimerService to allow auto reactivate session. Important to note is that when timer service created session this job instance will dispose that session to leave it in the same state it was before job was executed to avoid concurrent usage of the same session by different threads

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.drools.core.time.impl.DefaultTimerJobInstance
scheduler
 
Constructor Summary
GlobalJpaTimerJobInstance(org.drools.core.time.Job job, org.drools.core.time.JobContext ctx, org.drools.core.time.Trigger trigger, org.drools.core.time.JobHandle handle, org.drools.core.time.InternalSchedulerService scheduler)
           
 
Method Summary
 Void call()
           
 
Methods inherited from class org.drools.core.time.impl.DefaultTimerJobInstance
compareTo, getJob, getJobContext, getJobHandle, getTrigger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalJpaTimerJobInstance

public GlobalJpaTimerJobInstance(org.drools.core.time.Job job,
                                 org.drools.core.time.JobContext ctx,
                                 org.drools.core.time.Trigger trigger,
                                 org.drools.core.time.JobHandle handle,
                                 org.drools.core.time.InternalSchedulerService scheduler)
Method Detail

call

public Void call()
          throws Exception
Specified by:
call in interface Callable<Void>
Overrides:
call in class org.drools.persistence.jpa.JpaTimerJobInstance
Throws:
Exception

jBPM distribution 6.0.0.CR3

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.