Package org.drools.core.spi
Interface Duration
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
FixedDuration
public interface Duration extends Serializable
Interface for specifying truthness duration.- See Also:
org.kie.rule.Rule#setDuration,org.kie.rule.Rule#getDuration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetDuration(Tuple tuple)Retrieve the duration for which the conditions of thisTuplemust remain true before the rule will fire.
-
-
-
Method Detail
-
getDuration
long getDuration(Tuple tuple)
Retrieve the duration for which the conditions of this
Tuplemust remain true before the rule will fire.- Parameters:
tuple-- Returns:
- the duration
-
-