org.openorb.notify.filter
Class TimeFilter

java.lang.Object
  extended by org.openorb.notify.filter.TimeFilter

public class TimeFilter
extends java.lang.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
 boolean checkStartTime(UtcT startTime)
          Check if the event is deliverable based on its start time.
 boolean checkStopTime(UtcT stopTime)
          Check if the event is deliverable based on its expiry time.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.