Drools :: Core 6.1.0.Beta1

org.drools.core.time.impl
Class DefaultTimerJobInstance

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

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

See Also:
Serialized Form

Field Summary
protected static org.slf4j.Logger logger
           
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

logger

protected static transient org.slf4j.Logger logger

scheduler

protected transient 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

Drools :: Core 6.1.0.Beta1

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