public static enum SeekInfo.SeekErrorResponse extends Enum<SeekInfo.SeekErrorResponse> implements com.google.protobuf.ProtocolMessageEnum
SeekErrorTolerance indicates to the server how block provider errors should be tolerated. By default, if the deliver service detects a problem in the underlying block source (typically, in the orderer, a consenter error), it will begin to reject deliver requests. This is to prevent a client from waiting for blocks from an orderer which is stuck in an errored state. This is almost always the desired behavior and clients should stick with the default STRICT checking behavior. However, in some scenarios, particularly when attempting to recover from a crash or other corruption, it's desirable to force an orderer to respond with blocks on a best effort basis, even if the backing consensus implementation is in an errored state. In this case, set the SeekErrorResponse to BEST_EFFORT to ignore the consenter errors.Protobuf enum
orderer.SeekInfo.SeekErrorResponse
Enum Constant and Description |
---|
BEST_EFFORT
BEST_EFFORT = 1; |
STRICT
STRICT = 0; |
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
BEST_EFFORT_VALUE
BEST_EFFORT = 1; |
static int |
STRICT_VALUE
STRICT = 0; |
Modifier and Type | Method and Description |
---|---|
static SeekInfo.SeekErrorResponse |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<SeekInfo.SeekErrorResponse> |
internalGetValueMap() |
static SeekInfo.SeekErrorResponse |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SeekInfo.SeekErrorResponse |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SeekInfo.SeekErrorResponse |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SeekInfo.SeekErrorResponse[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SeekInfo.SeekErrorResponse STRICT
STRICT = 0;
public static final SeekInfo.SeekErrorResponse BEST_EFFORT
BEST_EFFORT = 1;
public static final SeekInfo.SeekErrorResponse UNRECOGNIZED
public static final int STRICT_VALUE
STRICT = 0;
public static final int BEST_EFFORT_VALUE
BEST_EFFORT = 1;
public static SeekInfo.SeekErrorResponse[] values()
for (SeekInfo.SeekErrorResponse c : SeekInfo.SeekErrorResponse.values()) System.out.println(c);
public static SeekInfo.SeekErrorResponse 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 final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static SeekInfo.SeekErrorResponse valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static SeekInfo.SeekErrorResponse forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SeekInfo.SeekErrorResponse> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static SeekInfo.SeekErrorResponse valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022. All rights reserved.