public static enum ConsumerConfigConstants.InitialPosition extends Enum<ConsumerConfigConstants.InitialPosition>
ShardIteratorType
used when the consumer tasks retrieve the first shard iterator for each
Kinesis shard.Enum Constant and Description |
---|
AT_TIMESTAMP
Start reading from the record at the specified timestamp.
|
LATEST
Start reading from the latest incoming record.
|
TRIM_HORIZON
Start reading from the earliest possible record in the stream (excluding expired data
records).
|
Modifier and Type | Method and Description |
---|---|
SentinelSequenceNumber |
toSentinelSequenceNumber() |
static ConsumerConfigConstants.InitialPosition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsumerConfigConstants.InitialPosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConsumerConfigConstants.InitialPosition TRIM_HORIZON
public static final ConsumerConfigConstants.InitialPosition LATEST
public static final ConsumerConfigConstants.InitialPosition AT_TIMESTAMP
public static ConsumerConfigConstants.InitialPosition[] values()
for (ConsumerConfigConstants.InitialPosition c : ConsumerConfigConstants.InitialPosition.values()) System.out.println(c);
public static ConsumerConfigConstants.InitialPosition 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 SentinelSequenceNumber toSentinelSequenceNumber()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.