Enum StoreIngestionTask.DelegateConsumerRecordResult
- java.lang.Object
-
- java.lang.Enum<StoreIngestionTask.DelegateConsumerRecordResult>
-
- com.linkedin.davinci.kafka.consumer.StoreIngestionTask.DelegateConsumerRecordResult
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<StoreIngestionTask.DelegateConsumerRecordResult>
- Enclosing class:
- StoreIngestionTask
protected static enum StoreIngestionTask.DelegateConsumerRecordResult extends java.lang.Enum<StoreIngestionTask.DelegateConsumerRecordResult>
This enum represents all potential results after callingStoreIngestionTask.delegateConsumerRecord(PubSubMessageProcessedResultWrapper, int, String, int, long, long)
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PRODUCED_TO_KAFKA
The consumer record has been produced to local version topic by leader.QUEUED_TO_DRAINER
The consumer record has been put into drainer queue; the following cases will result in putting to drainer directly: 1.SKIPPED_MESSAGE
The consumer record is skipped.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StoreIngestionTask.DelegateConsumerRecordResult
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static StoreIngestionTask.DelegateConsumerRecordResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRODUCED_TO_KAFKA
public static final StoreIngestionTask.DelegateConsumerRecordResult PRODUCED_TO_KAFKA
The consumer record has been produced to local version topic by leader.
-
QUEUED_TO_DRAINER
public static final StoreIngestionTask.DelegateConsumerRecordResult QUEUED_TO_DRAINER
The consumer record has been put into drainer queue; the following cases will result in putting to drainer directly: 1. Online/Offline ingestion task 2. Follower replicas 3. Leader is consuming from local version topics
-
SKIPPED_MESSAGE
public static final StoreIngestionTask.DelegateConsumerRecordResult SKIPPED_MESSAGE
The consumer record is skipped. e.g. remote VT's TS message during data recovery.
-
-
Method Detail
-
values
public static StoreIngestionTask.DelegateConsumerRecordResult[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StoreIngestionTask.DelegateConsumerRecordResult c : StoreIngestionTask.DelegateConsumerRecordResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StoreIngestionTask.DelegateConsumerRecordResult valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-