public static interface RaftServerConfigKeys.Log.Appender
| 限定符和类型 | 字段和说明 |
|---|---|
static SizeInBytes |
BUFFER_BYTE_LIMIT_DEFAULT |
static String |
BUFFER_BYTE_LIMIT_KEY |
static int |
BUFFER_ELEMENT_LIMIT_DEFAULT
0 means no limit.
|
static String |
BUFFER_ELEMENT_LIMIT_KEY |
static boolean |
INSTALL_SNAPSHOT_ENABLED_DEFAULT |
static String |
INSTALL_SNAPSHOT_ENABLED_KEY |
static String |
PREFIX |
static String |
RETRY_POLICY_DEFAULT
The min wait time as 1ms (0 is not allowed) for first 10,
(5 iteration with 2 times grpc client retry)
next wait 1sec for next 20 retry (10 iteration with 2 times grpc client)
further wait for 5sec for max times ((5sec*980)/2 times ~= 40min)
|
static String |
RETRY_POLICY_KEY |
static SizeInBytes |
SNAPSHOT_CHUNK_SIZE_MAX_DEFAULT |
static String |
SNAPSHOT_CHUNK_SIZE_MAX_KEY |
static TimeDuration |
WAIT_TIME_MIN_DEFAULT |
static String |
WAIT_TIME_MIN_KEY |
| 限定符和类型 | 方法和说明 |
|---|---|
static SizeInBytes |
bufferByteLimit(RaftProperties properties) |
static int |
bufferElementLimit(RaftProperties properties) |
static boolean |
installSnapshotEnabled(RaftProperties properties) |
static String |
retryPolicy(RaftProperties properties) |
static void |
setBufferByteLimit(RaftProperties properties,
SizeInBytes bufferByteLimit) |
static void |
setBufferElementLimit(RaftProperties properties,
int bufferElementLimit) |
static void |
setInstallSnapshotEnabled(RaftProperties properties,
boolean shouldInstallSnapshot) |
static void |
setRetryPolicy(RaftProperties properties,
String retryPolicy) |
static void |
setSnapshotChunkSizeMax(RaftProperties properties,
SizeInBytes maxChunkSize) |
static void |
setWaitTimeMin(RaftProperties properties,
TimeDuration minDuration) |
static SizeInBytes |
snapshotChunkSizeMax(RaftProperties properties) |
static TimeDuration |
waitTimeMin(RaftProperties properties) |
static final int BUFFER_ELEMENT_LIMIT_DEFAULT
static final SizeInBytes BUFFER_BYTE_LIMIT_DEFAULT
static final SizeInBytes SNAPSHOT_CHUNK_SIZE_MAX_DEFAULT
static final boolean INSTALL_SNAPSHOT_ENABLED_DEFAULT
static final TimeDuration WAIT_TIME_MIN_DEFAULT
static final String RETRY_POLICY_DEFAULT
static int bufferElementLimit(RaftProperties properties)
static void setBufferElementLimit(RaftProperties properties, int bufferElementLimit)
static SizeInBytes bufferByteLimit(RaftProperties properties)
static void setBufferByteLimit(RaftProperties properties, SizeInBytes bufferByteLimit)
static SizeInBytes snapshotChunkSizeMax(RaftProperties properties)
static void setSnapshotChunkSizeMax(RaftProperties properties, SizeInBytes maxChunkSize)
static boolean installSnapshotEnabled(RaftProperties properties)
static void setInstallSnapshotEnabled(RaftProperties properties, boolean shouldInstallSnapshot)
static TimeDuration waitTimeMin(RaftProperties properties)
static void setWaitTimeMin(RaftProperties properties, TimeDuration minDuration)
static String retryPolicy(RaftProperties properties)
static void setRetryPolicy(RaftProperties properties, String retryPolicy)
Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.