public static class TimeRangeTracker.SyncTimeRangeTracker extends TimeRangeTracker
TimeRangeTracker.NonSyncTimeRangeTracker, TimeRangeTracker.SyncTimeRangeTracker, TimeRangeTracker.Type
Modifier and Type | Field and Description |
---|---|
private AtomicLong |
maximumTimestamp |
private AtomicLong |
minimumTimestamp |
INITIAL_MAX_TIMESTAMP, INITIAL_MIN_TIMESTAMP
Modifier | Constructor and Description |
---|---|
private |
SyncTimeRangeTracker() |
(package private) |
SyncTimeRangeTracker(long minimumTimestamp,
long maximumTimestamp) |
(package private) |
SyncTimeRangeTracker(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 final AtomicLong minimumTimestamp
private final AtomicLong maximumTimestamp
private SyncTimeRangeTracker()
SyncTimeRangeTracker(TimeRangeTracker trt)
SyncTimeRangeTracker(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.