@Internal public enum SentinelSequenceNumber extends Enum<SentinelSequenceNumber>
FlinkKinesisConsumer
when KinesisDataFetcher
s are created. The
KinesisDataFetchers will use this value to determine how to retrieve the starting shard iterator
from AWS Kinesis.Enum Constant and Description |
---|
SENTINEL_AT_TIMESTAMP_SEQUENCE_NUM
Flag value for shard's sequence numbers to indicate that the shard should start to be read
from the specified timestamp.
|
SENTINEL_EARLIEST_SEQUENCE_NUM
Flag value for shard's sequence numbers to indicate that the shard should start to be read
from the earliest records that haven't expired yet.
|
SENTINEL_LATEST_SEQUENCE_NUM
Flag value for shard's sequence numbers to indicate that the shard should start to be read
from the latest incoming records.
|
SENTINEL_SHARD_ENDING_SEQUENCE_NUM
Flag value to indicate that we have already read the last record of this shard (Note: Kinesis
shards that have been closed due to a split or merge will have an ending data record).
|
Modifier and Type | Method and Description |
---|---|
SequenceNumber |
get() |
static boolean |
isSentinelSequenceNumber(SequenceNumber candidateSequenceNumber)
Returns
true if the given SequenceNumber is a sentinel. |
static SentinelSequenceNumber |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SentinelSequenceNumber[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SentinelSequenceNumber SENTINEL_LATEST_SEQUENCE_NUM
public static final SentinelSequenceNumber SENTINEL_EARLIEST_SEQUENCE_NUM
public static final SentinelSequenceNumber SENTINEL_AT_TIMESTAMP_SEQUENCE_NUM
public static final SentinelSequenceNumber SENTINEL_SHARD_ENDING_SEQUENCE_NUM
public static SentinelSequenceNumber[] values()
for (SentinelSequenceNumber c : SentinelSequenceNumber.values()) System.out.println(c);
public static SentinelSequenceNumber 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 SequenceNumber get()
public static boolean isSentinelSequenceNumber(SequenceNumber candidateSequenceNumber)
true
if the given SequenceNumber
is a sentinel.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.