public enum SentinelCheckpoint extends Enum<SentinelCheckpoint>
Enum Constant and Description |
---|
AT_TIMESTAMP
Start from the record at or after the specified server-side timestamp.
|
LATEST
Start from the latest record in the shard.
|
SHARD_END
We've completely processed all records in this shard.
|
TRIM_HORIZON
Start from the first available record in the shard.
|
Modifier and Type | Method and Description |
---|---|
static SentinelCheckpoint |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SentinelCheckpoint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SentinelCheckpoint TRIM_HORIZON
public static final SentinelCheckpoint LATEST
public static final SentinelCheckpoint SHARD_END
public static final SentinelCheckpoint AT_TIMESTAMP
public static SentinelCheckpoint[] values()
for (SentinelCheckpoint c : SentinelCheckpoint.values()) System.out.println(c);
public static SentinelCheckpoint 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 nullCopyright © 2022. All rights reserved.