org.yawlfoundation.yawl.engine.time
Class YWorkItemTimer

java.lang.Object
  extended by org.yawlfoundation.yawl.engine.time.YWorkItemTimer
All Implemented Interfaces:
YTimedObject

public class YWorkItemTimer
extends Object
implements YTimedObject

A timer associated with an Atomic Task. Author: Michael Adams Creation Date: 31/01/2008


Nested Class Summary
static class YWorkItemTimer.State
           
static class YWorkItemTimer.Trigger
           
 
Constructor Summary
YWorkItemTimer()
           
YWorkItemTimer(String workItemID, Date expiryTime, boolean persisting)
           
YWorkItemTimer(String workItemID, Duration duration, boolean persisting)
           
YWorkItemTimer(String workItemID, long msec, boolean persisting)
           
YWorkItemTimer(String workItemID, long units, YTimer.TimeUnit interval, boolean persisting)
           
 
Method Summary
 void cancel()
           
 boolean equals(Object other)
           
 long getEndTime()
           
 String getOwnerID()
           
 void handleTimerExpiry()
           
 int hashCode()
           
 void persistThis(boolean insert)
           
 void setEndTime(long time)
           
 void setOwnerID(String id)
           
 void setPersisting(boolean persist)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YWorkItemTimer

public YWorkItemTimer()

YWorkItemTimer

public YWorkItemTimer(String workItemID,
                      long msec,
                      boolean persisting)

YWorkItemTimer

public YWorkItemTimer(String workItemID,
                      Date expiryTime,
                      boolean persisting)

YWorkItemTimer

public YWorkItemTimer(String workItemID,
                      Duration duration,
                      boolean persisting)

YWorkItemTimer

public YWorkItemTimer(String workItemID,
                      long units,
                      YTimer.TimeUnit interval,
                      boolean persisting)
Method Detail

getOwnerID

public String getOwnerID()
Specified by:
getOwnerID in interface YTimedObject

setOwnerID

public void setOwnerID(String id)

getEndTime

public long getEndTime()

setEndTime

public void setEndTime(long time)

setPersisting

public void setPersisting(boolean persist)

persistThis

public void persistThis(boolean insert)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

handleTimerExpiry

public void handleTimerExpiry()
Specified by:
handleTimerExpiry in interface YTimedObject

cancel

public void cancel()
Specified by:
cancel in interface YTimedObject


Copyright © 2004-2012 The YAWL Foundation.