public interface ReadOnlyService extends Lifecycle<ReadOnlyServiceOptions>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addRequest(byte[] reqCtx,
ReadIndexClosure closure)
Adds a ReadIndex request.
|
void |
join()
Waits for service shutdown.
|
void |
setError(RaftException error)
Called when the node is turned into error state.
|
void addRequest(byte[] reqCtx,
ReadIndexClosure closure)
reqCtx - request context of readIndexclosure - callbackvoid join() throws InterruptedException
InterruptedException - if the current thread is interrupted
while waitingvoid setError(RaftException error)
error - error with raft infoCopyright © 2021. All rights reserved.