| Package | Description |
|---|---|
| com.alipay.sofa.jraft | |
| com.alipay.sofa.jraft.core | |
| com.alipay.sofa.jraft.option |
| Modifier and Type | Method and Description |
|---|---|
void |
ReadOnlyService.addRequest(ReadOnlyOption readOnlyOptions,
byte[] reqCtx,
ReadIndexClosure closure)
Adds a ReadIndex request.
|
void |
Node.readIndex(ReadOnlyOption readOnlyOptions,
byte[] requestContext,
ReadIndexClosure done)
[Thread-safe and wait-free]
Specify the ReadOnlyOption to execute a linearizable read-only query request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ReadOnlyServiceImpl.addRequest(ReadOnlyOption readOnlyOptions,
byte[] reqCtx,
ReadIndexClosure closure) |
void |
NodeImpl.readIndex(ReadOnlyOption readOnlyOptions,
byte[] requestContext,
ReadIndexClosure done) |
| Modifier and Type | Method and Description |
|---|---|
ReadOnlyOption |
RaftOptions.getReadOnlyOptions() |
static ReadOnlyOption |
ReadOnlyOption.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReadOnlyOption |
ReadOnlyOption.valueOfWithDefault(EnumOutter.ReadOnlyType readOnlyType,
ReadOnlyOption defaultOption) |
static ReadOnlyOption[] |
ReadOnlyOption.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static EnumOutter.ReadOnlyType |
ReadOnlyOption.convertMsgType(ReadOnlyOption option) |
void |
RaftOptions.setReadOnlyOptions(ReadOnlyOption readOnlyOptions) |
static ReadOnlyOption |
ReadOnlyOption.valueOfWithDefault(EnumOutter.ReadOnlyType readOnlyType,
ReadOnlyOption defaultOption) |
Copyright © 2024. All rights reserved.