public static enum WriteRequest.Atomicity extends Enum<WriteRequest.Atomicity> implements com.google.protobuf.ProtocolMessageEnum
p4.v1.WriteRequest.Atomicity
Enum Constant and Description |
---|
CONTINUE_ON_ERROR
Required.
|
DATAPLANE_ATOMIC
Optional.
|
ROLLBACK_ON_ERROR
Optional.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
CONTINUE_ON_ERROR_VALUE
Required.
|
static int |
DATAPLANE_ATOMIC_VALUE
Optional.
|
static int |
ROLLBACK_ON_ERROR_VALUE
Optional.
|
Modifier and Type | Method and Description |
---|---|
static WriteRequest.Atomicity |
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<WriteRequest.Atomicity> |
internalGetValueMap() |
static WriteRequest.Atomicity |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static WriteRequest.Atomicity |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static WriteRequest.Atomicity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WriteRequest.Atomicity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WriteRequest.Atomicity CONTINUE_ON_ERROR
Required. This is the default behavior. The batch is processed in a non-atomic manner from a dataplane point of view. Each operation within the batch must be attempted even if one or more encounter errors. Every dataplane packet is guaranteed to be processed according to table contents as they are between two individual operations of the batch, but there could be several packets processed that see each of these intermediate stages.
CONTINUE_ON_ERROR = 0;
public static final WriteRequest.Atomicity ROLLBACK_ON_ERROR
Optional. Operations within the batch are committed to dataplane until an error is encountered. At this point, the operations must be rolled back such that both software and dataplane state is consistent with the state before the batch was attempted. The resulting behavior is all-or-none, except the batch is not atomic from a data plane point of view. Every dataplane packet is guaranteed to be processed according to table contents as they are between two individual operations of the batch, but there could be several packets processed that see each of these intermediate stages.
ROLLBACK_ON_ERROR = 1;
public static final WriteRequest.Atomicity DATAPLANE_ATOMIC
Optional. Every dataplane packet is guaranteed to be processed according to table contents before the batch began, or after the batch completed and the operations were programmed to the hardware. The batch is therefore treated as a transaction.
DATAPLANE_ATOMIC = 2;
public static final WriteRequest.Atomicity UNRECOGNIZED
public static final int CONTINUE_ON_ERROR_VALUE
Required. This is the default behavior. The batch is processed in a non-atomic manner from a dataplane point of view. Each operation within the batch must be attempted even if one or more encounter errors. Every dataplane packet is guaranteed to be processed according to table contents as they are between two individual operations of the batch, but there could be several packets processed that see each of these intermediate stages.
CONTINUE_ON_ERROR = 0;
public static final int ROLLBACK_ON_ERROR_VALUE
Optional. Operations within the batch are committed to dataplane until an error is encountered. At this point, the operations must be rolled back such that both software and dataplane state is consistent with the state before the batch was attempted. The resulting behavior is all-or-none, except the batch is not atomic from a data plane point of view. Every dataplane packet is guaranteed to be processed according to table contents as they are between two individual operations of the batch, but there could be several packets processed that see each of these intermediate stages.
ROLLBACK_ON_ERROR = 1;
public static final int DATAPLANE_ATOMIC_VALUE
Optional. Every dataplane packet is guaranteed to be processed according to table contents before the batch began, or after the batch completed and the operations were programmed to the hardware. The batch is therefore treated as a transaction.
DATAPLANE_ATOMIC = 2;
public static WriteRequest.Atomicity[] values()
for (WriteRequest.Atomicity c : WriteRequest.Atomicity.values()) System.out.println(c);
public static WriteRequest.Atomicity 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 WriteRequest.Atomicity valueOf(int value)
forNumber(int)
instead.public static WriteRequest.Atomicity forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<WriteRequest.Atomicity> 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 WriteRequest.Atomicity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018 OpenDaylight. All rights reserved.