org.drools.spi
Interface Duration

All Known Implementing Classes:
BaseDuration, FixedDuration

public interface Duration

Interface for specifying truthness duration.

See Also:
Rule.setDuration(long), Rule.getDuration()
 

Method Summary
 long getDuration(Tuple tuple)
           Retrieve the duration for which the conditions of this Tuple must remain true before the rule will fire.
 

Method Detail

getDuration

public long getDuration(Tuple tuple)

Retrieve the duration for which the conditions of this Tuple must remain true before the rule will fire.

Parameters:
tuple -
Returns:
the duration