public interface CheckpointIDCounter
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
INITIAL_CHECKPOINT_ID |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
void |
shutdown(org.apache.flink.api.common.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.Exceptionvoid shutdown(org.apache.flink.api.common.JobStatus jobStatus)
throws Exception
CheckpointIDCounter service.
The job status is forwarded and used to decide whether state should actually be discarded or kept.
jobStatus - Job state on shut downExceptionlong getAndIncrement()
throws Exception
Exceptionlong get()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.