org.openorb.notify.filter

Class TimeFilter

public class TimeFilter extends Object

This filter implements a specialized time filter. The filter compares an event start or expiry against current time.

Author: Olivier Modica

Constructor Summary
TimeFilter(TimeService timeSource)
Default constructor.
Method Summary
booleancheckStartTime(UtcT startTime)
Check if the event is deliverable based on its start time.
booleancheckStopTime(UtcT stopTime)
Check if the event is deliverable based on its expiry time.

Constructor Detail

TimeFilter

public TimeFilter(TimeService timeSource)
Default constructor.

Method Detail

checkStartTime

public boolean checkStartTime(UtcT startTime)
Check if the event is deliverable based on its start time.

checkStopTime

public boolean checkStopTime(UtcT stopTime)
Check if the event is deliverable based on its expiry time.