org.drools.time.impl
Class DefaultTimerJobInstance

java.lang.Object
  extended by org.drools.time.impl.DefaultTimerJobInstance
All Implemented Interfaces:
Comparable<DefaultTimerJobInstance>, Callable<Void>, TimerJobInstance

public class DefaultTimerJobInstance
extends Object
implements Callable<Void>, Comparable<DefaultTimerJobInstance>, TimerJobInstance


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

Field Detail

scheduler

protected final InternalSchedulerService scheduler
Constructor Detail

DefaultTimerJobInstance

public DefaultTimerJobInstance(Job job,
                               JobContext ctx,
                               Trigger trigger,
                               JobHandle handle,
                               InternalSchedulerService scheduler)
Method Detail

compareTo

public int compareTo(DefaultTimerJobInstance o)
Specified by:
compareTo in interface Comparable<DefaultTimerJobInstance>

call

public Void call()
          throws Exception
Specified by:
call in interface Callable<Void>
Throws:
Exception

getJobHandle

public JobHandle getJobHandle()
Specified by:
getJobHandle in interface TimerJobInstance

getJob

public Job getJob()
Specified by:
getJob in interface TimerJobInstance

getTrigger

public Trigger getTrigger()
Specified by:
getTrigger in interface TimerJobInstance

getJobContext

public JobContext getJobContext()
Specified by:
getJobContext in interface TimerJobInstance


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