wt.workflow.definer
Class TimeToElapse

java.lang.Object
  extended by wt.workflow.definer.TimeToElapse
All Implemented Interfaces:
Serializable

public class TimeToElapse
extends Object
implements Serializable

Models elapsed time in workflows.

Supported API: true

Extendable: false

See Also:
Serialized Form

Constructor Summary
TimeToElapse(long duration)
          Constructs a TimeToElapse object from the time given in milliseconds.
 
Method Summary
 long getTimeToElapse()
          Retrieves the time to elapse in milliseconds.
 long longValue()
          Retrieves the time to elapse in milliseconds.
 void setTimeToElapse(int days)
          Sets the time to elapse given the number of days.
 void setTimeToElapse(int days, int hours, int minutes, int seconds)
          Sets the time to elapse given the number of days, hours, minutes and seconds.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeToElapse

public TimeToElapse(long duration)
Constructs a TimeToElapse object from the time given in milliseconds.

Supported API: true

Parameters:
duration -
Method Detail

setTimeToElapse

public void setTimeToElapse(int days,
                            int hours,
                            int minutes,
                            int seconds)
Sets the time to elapse given the number of days, hours, minutes and seconds.

Supported API: true

Parameters:
days -
hours -
minutes -
seconds -

setTimeToElapse

public void setTimeToElapse(int days)
Sets the time to elapse given the number of days.

Supported API: true

Parameters:
days -

getTimeToElapse

public long getTimeToElapse()
Retrieves the time to elapse in milliseconds.

Supported API: true

Returns:
long

longValue

public long longValue()
Retrieves the time to elapse in milliseconds.

Supported API: true

Returns:
long