public abstract class SnapshotCopier extends Status implements Closeable
| 构造器和说明 |
|---|
SnapshotCopier() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
cancel()
Cancel the copy job.
|
abstract SnapshotReader |
getReader()
Get the the SnapshotReader which represents the copied Snapshot
|
abstract void |
join()
Block the thread until this copy job finishes, or some error occurs.
|
abstract void |
start()
Start the copy job.
|
copy, equals, getCode, getErrorMsg, getRaftError, hashCode, isOk, OK, reset, setCode, setError, setError, setErrorMsg, toStringpublic abstract void cancel()
public abstract void join()
throws InterruptedException
InterruptedException - if the current thread is interrupted
while waitingpublic abstract void start()
public abstract SnapshotReader getReader()
Copyright © 2021. All rights reserved.