public interface CheckpointIDCounter
Modifier and Type | Field and Description |
---|---|
static int |
INITIAL_CHECKPOINT_ID |
Modifier and Type | Method and Description |
---|---|
long |
get()
Atomically gets the current checkpoint ID.
|
long |
getAndIncrement()
Atomically increments the current checkpoint ID.
|
void |
setCount(long newId)
Sets the current checkpoint ID.
|
CompletableFuture<Void> |
shutdown(JobStatus jobStatus)
Shuts the
CheckpointIDCounter service. |
void |
start()
Starts the
CheckpointIDCounter service down. |
static final int INITIAL_CHECKPOINT_ID
void start() throws Exception
CheckpointIDCounter
service down.Exception
CompletableFuture<Void> shutdown(JobStatus jobStatus)
CheckpointIDCounter
service.
The job status is forwarded and used to decide whether state should actually be discarded or kept.
jobStatus
- Job state on shut downCompletableFuture
holding the result of the shutdown operation.long getAndIncrement() throws Exception
Exception
long get()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.