public class TimeOffsetVolatileIntervalsFunction extends Object implements VolatileIntervalsFunction
| Modifier and Type | Field and Description |
|---|---|
static long |
FAR_FUTURE
Arbitrary future date for unbounded volatility.
|
| Constructor and Description |
|---|
TimeOffsetVolatileIntervalsFunction(long past)
Build a time offset volatile intervals function which marks all intervals from past to the value of FAR_FUTURE as
volatile.
|
TimeOffsetVolatileIntervalsFunction(long past,
long future)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SimplifiedIntervalList |
getVolatileIntervals()
Retrieve a list of which intervals are volatile.
|
public static final long FAR_FUTURE
public TimeOffsetVolatileIntervalsFunction(long past)
past - The default milliseconds before System.currentTimeMillis considered to be volatilepublic TimeOffsetVolatileIntervalsFunction(long past,
long future)
past - The milliseconds before System.currentTimeMillis considered to be volatile in the pastfuture - The milliseconds after System.currentTimeMillis considered to be volatile in the futurepublic SimplifiedIntervalList getVolatileIntervals()
VolatileIntervalsFunctiongetVolatileIntervals in interface VolatileIntervalsFunctionCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.