public static class RocksDBSegmentLogStorage.BarrierWriteContext extends Object implements RocksDBLogStorage.WriteContext
| Constructor and Description |
|---|
BarrierWriteContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFinishHook(Runnable r)
Adds a callback that will be invoked after all sub jobs finish.
|
void |
finishJob()
Finish a sub job
|
void |
joinAll()
Wait for all sub jobs finish.
|
void |
setError(Exception e)
Set an exception to context.
|
void |
startJob()
Start a sub job.
|
public void startJob()
RocksDBLogStorage.WriteContextstartJob in interface RocksDBLogStorage.WriteContextpublic void addFinishHook(Runnable r)
RocksDBLogStorage.WriteContextaddFinishHook in interface RocksDBLogStorage.WriteContextpublic void finishJob()
RocksDBLogStorage.WriteContextfinishJob in interface RocksDBLogStorage.WriteContextpublic void setError(Exception e)
RocksDBLogStorage.WriteContextsetError in interface RocksDBLogStorage.WriteContexte - exceptionpublic void joinAll()
throws InterruptedException,
IOException
RocksDBLogStorage.WriteContextjoinAll in interface RocksDBLogStorage.WriteContextInterruptedExceptionIOExceptionCopyright © 2024. All rights reserved.