public class FixedDuration extends Object implements Duration
Rule#setDuration,
Rule#getDuration,
Serialized Form| Constructor and Description |
|---|
FixedDuration()
Construct.
|
FixedDuration(long ms)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDays(long days)
Add days.
|
void |
addHours(long hours)
Add hours.
|
void |
addMinutes(long minutes)
Add minutes.
|
void |
addSeconds(long seconds)
Add seconds.
|
void |
addWeeks(long weeks)
Add weeks.
|
long |
getDuration(Tuple tuple)
Retrieve the duration for which the conditions of this
Tuple
must remain true before the rule will fire. |
public FixedDuration()
public FixedDuration(long ms)
seconds - Number of seconds.public void addSeconds(long seconds)
seconds - Number of seconds.public void addMinutes(long minutes)
minutes - Number of minutes.public void addHours(long hours)
hours - Number of hours.public void addDays(long days)
days - Number of days.public void addWeeks(long weeks)
weeks - Number of weeks.public long getDuration(Tuple tuple)
Duration
Retrieve the duration for which the conditions of this Tuple
must remain true before the rule will fire.
getDuration in interface DurationDurationCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.