Package wt.workflow.definer
Class TimeToElapse
java.lang.Object
wt.workflow.definer.TimeToElapse
- All Implemented Interfaces:
Serializable
Models elapsed time in workflows.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTimeToElapse(long duration) Constructs aTimeToElapseobject from the time given in milliseconds. -
Method Summary
Modifier and TypeMethodDescriptionlongRetrieves the time to elapse in milliseconds.longRetrieves the time to elapse in milliseconds.voidsetTimeToElapse(int days) Sets the time to elapse given the number of days.voidsetTimeToElapse(int days, int hours, int minutes, int seconds) Sets the time to elapse given the number of days, hours, minutes and seconds.
-
Constructor Details
-
TimeToElapse
public TimeToElapse(long duration) Constructs aTimeToElapseobject 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
-