public class SegmentBuffer extends Object
| 构造器和说明 |
|---|
SegmentBuffer() |
| 限定符和类型 | 方法和说明 |
|---|---|
Segment |
getCurrent() |
int |
getCurrentPos() |
String |
getKey() |
int |
getMinStep() |
Segment[] |
getSegments() |
int |
getStep() |
AtomicBoolean |
getThreadRunning() |
long |
getUpdateTimestamp() |
boolean |
isInitOk() |
boolean |
isNextReady() |
int |
nextPos() |
Lock |
rLock() |
void |
setInitOk(boolean initOk) |
void |
setKey(String key) |
void |
setMinStep(int minStep) |
void |
setNextReady(boolean nextReady) |
void |
setStep(int step) |
void |
setUpdateTimestamp(long updateTimestamp) |
void |
switchPos() |
String |
toString() |
Lock |
wLock() |
public String getKey()
public void setKey(String key)
public Segment[] getSegments()
public Segment getCurrent()
public int getCurrentPos()
public int nextPos()
public void switchPos()
public boolean isInitOk()
public void setInitOk(boolean initOk)
public boolean isNextReady()
public void setNextReady(boolean nextReady)
public AtomicBoolean getThreadRunning()
public Lock rLock()
public Lock wLock()
public int getStep()
public void setStep(int step)
public int getMinStep()
public void setMinStep(int minStep)
public long getUpdateTimestamp()
public void setUpdateTimestamp(long updateTimestamp)
Copyright © 2022 Meituan-Dianping Group. All rights reserved.