public static enum RaftServerConfigKeys.Log.CorruptionPolicy extends Enum<RaftServerConfigKeys.Log.CorruptionPolicy>
| Enum Constant and Description |
|---|
EXCEPTION
Rethrow the exception.
|
WARN_AND_RETURN
Print a warn log message and return all uncorrupted log entries up to the corruption.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> RaftServerConfigKeys.Log.CorruptionPolicy |
get(T supplier,
Function<T,RaftServerConfigKeys.Log.CorruptionPolicy> getMethod) |
static RaftServerConfigKeys.Log.CorruptionPolicy |
getDefault() |
static RaftServerConfigKeys.Log.CorruptionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RaftServerConfigKeys.Log.CorruptionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RaftServerConfigKeys.Log.CorruptionPolicy EXCEPTION
public static final RaftServerConfigKeys.Log.CorruptionPolicy WARN_AND_RETURN
public static RaftServerConfigKeys.Log.CorruptionPolicy[] values()
for (RaftServerConfigKeys.Log.CorruptionPolicy c : RaftServerConfigKeys.Log.CorruptionPolicy.values()) System.out.println(c);
public static RaftServerConfigKeys.Log.CorruptionPolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static RaftServerConfigKeys.Log.CorruptionPolicy getDefault()
public static <T> RaftServerConfigKeys.Log.CorruptionPolicy get(T supplier, Function<T,RaftServerConfigKeys.Log.CorruptionPolicy> getMethod)
Copyright © 2017–2020 The Apache Software Foundation. All rights reserved.