public static class TimeRangeTracker.NonSyncTimeRangeTracker extends TimeRangeTracker
TimeRangeTracker.NonSyncTimeRangeTracker, TimeRangeTracker.SyncTimeRangeTracker, TimeRangeTracker.Type
Modifier and Type | Field and Description |
---|---|
private long |
maximumTimestamp |
private long |
minimumTimestamp |
INITIAL_MAX_TIMESTAMP, INITIAL_MIN_TIMESTAMP
Constructor and Description |
---|
NonSyncTimeRangeTracker() |
NonSyncTimeRangeTracker(long minimumTimestamp,
long maximumTimestamp) |
NonSyncTimeRangeTracker(TimeRangeTracker trt) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
compareAndSetMax(long expect,
long update) |
protected boolean |
compareAndSetMin(long expect,
long update) |
long |
getMax() |
long |
getMin() |
protected void |
setMax(long ts) |
protected void |
setMin(long ts) |
create, create, create, includesTimeRange, includeTimestamp, includeTimestamp, parseFrom, parseFrom, toByteArray, toString, toTimeRange
private long minimumTimestamp
private long maximumTimestamp
NonSyncTimeRangeTracker()
NonSyncTimeRangeTracker(TimeRangeTracker trt)
NonSyncTimeRangeTracker(long minimumTimestamp, long maximumTimestamp)
protected void setMax(long ts)
setMax
in class TimeRangeTracker
protected void setMin(long ts)
setMin
in class TimeRangeTracker
protected boolean compareAndSetMin(long expect, long update)
compareAndSetMin
in class TimeRangeTracker
protected boolean compareAndSetMax(long expect, long update)
compareAndSetMax
in class TimeRangeTracker
public long getMin()
getMin
in class TimeRangeTracker
public long getMax()
getMax
in class TimeRangeTracker
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.