Class CloudTasksReplaySnapshot
java.lang.Object
io.github.flink.gcp.connector.cloudtasks.sink.CloudTasksReplaySnapshot
Immutable observation of an owned batch, containing no task payload or durable state.
-
Method Summary
Modifier and TypeMethodDescriptionlongageMillis(long now) Returns the oldest age in milliseconds, or -1 when no tasks are observed.static CloudTasksReplaySnapshotempty()Returns an observation with no owned tasks.include(long origin, long deadline) Includes an envelope's origin and effective authorization deadline.longremainingMillis(long now) Returns the shortest remaining budget in milliseconds, or -1 for an empty observation.
-
Method Details
-
empty
Returns an observation with no owned tasks. -
include
Includes an envelope's origin and effective authorization deadline. -
ageMillis
public long ageMillis(long now) Returns the oldest age in milliseconds, or -1 when no tasks are observed. -
remainingMillis
public long remainingMillis(long now) Returns the shortest remaining budget in milliseconds, or -1 for an empty observation.
-