org.drools.time.impl
Class DefaultJobHandle

java.lang.Object
  extended by org.drools.time.impl.DefaultJobHandle
All Implemented Interfaces:
JobHandle
Direct Known Subclasses:
JDKTimerService.JDKJobHandle

public class DefaultJobHandle
extends Object
implements JobHandle

A default implementation for the JobHandle interface


Constructor Summary
DefaultJobHandle(long id)
           
 
Method Summary
 boolean equals(Object obj)
           
 long getId()
           
 Object getJob()
           
 TimerJobInstance getTimerJobInstance()
           
 int hashCode()
           
 boolean isCancel()
           
 void setCancel(boolean cancel)
           
 void setTimerJobInstance(TimerJobInstance scheduledJob)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultJobHandle

public DefaultJobHandle(long id)
Method Detail

getId

public long getId()
Specified by:
getId in interface JobHandle

setCancel

public void setCancel(boolean cancel)
Specified by:
setCancel in interface JobHandle

isCancel

public boolean isCancel()
Specified by:
isCancel in interface JobHandle

getJob

public Object getJob()

setTimerJobInstance

public void setTimerJobInstance(TimerJobInstance scheduledJob)

getTimerJobInstance

public TimerJobInstance getTimerJobInstance()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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