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()
Returns the maximumTimestamp
|
long |
getMin()
Returns the minimumTimestamp
|
protected void |
setMax(long ts) |
protected void |
setMin(long ts) |
create, create, create, includesTimeRange, includeTimestamp, includeTimestamp, parseFrom, parseFrom, toByteArray, toString, toTimeRangeprivate 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 TimeRangeTrackerprotected void setMin(long ts)
setMin in class TimeRangeTrackerprotected boolean compareAndSetMin(long expect, long update)
compareAndSetMin in class TimeRangeTrackerprotected boolean compareAndSetMax(long expect, long update)
compareAndSetMax in class TimeRangeTrackerpublic long getMin()
TimeRangeTrackergetMin in class TimeRangeTrackerpublic long getMax()
TimeRangeTrackergetMax in class TimeRangeTrackerCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.