Class TimeToElapse

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

@GenAsPrimitiveType(long.class) public class TimeToElapse extends Object implements Serializable
Models elapsed time in workflows.

Supported API: true

Extendable: false
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    TimeToElapse(long duration)
    Constructs a TimeToElapse object from the time given in milliseconds.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Retrieves the time to elapse in milliseconds.
    long
    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 Details

    • TimeToElapse

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

      Supported API: true
      Parameters:
      duration -
  • Method Details

    • 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