public final class IntervalRegistry extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addIntervalRegistryListener(IntervalRegistryListener listener) |
void |
forceUpdateIntervalForTestingPurposes(String intervalName) |
static IntervalRegistry |
getInstance()
This is the Singleton instance accessor method.
|
Interval |
getInterval(String aName)
This method retrieves an Interval with the given name.
|
Interval |
getInterval(String aName,
int aLength)
This method retrieves an Interval with the given name.
|
List<Interval> |
getIntervals()
This method returns a list containing all known Intervals.
|
Long |
getUpdateTimestamp(String intervalName)
Returns last update timestamp of an interval by name.
|
public static IntervalRegistry getInstance()
public Interval getInterval(String aName, int aLength)
aName - the Interval nameaLength - the length of the new Interval in seconds.public Interval getInterval(String aName)
aName - the Interval namepublic List<Interval> getIntervals()
public Long getUpdateTimestamp(String intervalName)
intervalName - name of the interval.public void forceUpdateIntervalForTestingPurposes(String intervalName)
public void addIntervalRegistryListener(IntervalRegistryListener listener)
Copyright © 2010-2017 anotheria.net. All Rights Reserved.