public abstract class KinesisIngressStartupPosition
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
KinesisIngressStartupPosition.DatePosition |
static class |
KinesisIngressStartupPosition.EarliestPosition |
static class |
KinesisIngressStartupPosition.LatestPosition |
Modifier and Type | Method and Description |
---|---|
KinesisIngressStartupPosition.DatePosition |
asDate()
Returns this position as a
KinesisIngressStartupPosition.DatePosition . |
static KinesisIngressStartupPosition |
fromDate(java.time.ZonedDateTime date)
Start consuming from position with ingestion timestamps after or equal to a specified
ZonedDateTime . |
static KinesisIngressStartupPosition |
fromEarliest()
Start consuming from the earliest position possible.
|
static KinesisIngressStartupPosition |
fromLatest()
Start consuming from the latest position, i.e.
|
boolean |
isDate()
Checks whether this position is configured using a date.
|
boolean |
isEarliest()
Checks whether this position is configured using the earliest position.
|
boolean |
isLatest()
Checks whether this position is configured using the latest position.
|
public static KinesisIngressStartupPosition fromEarliest()
public static KinesisIngressStartupPosition fromLatest()
public static KinesisIngressStartupPosition fromDate(java.time.ZonedDateTime date)
ZonedDateTime
.public final boolean isEarliest()
public final boolean isLatest()
public final boolean isDate()
public final KinesisIngressStartupPosition.DatePosition asDate()
KinesisIngressStartupPosition.DatePosition
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.