Class LocalChangelogRegistryImpl
java.lang.Object
org.apache.flink.runtime.state.changelog.LocalChangelogRegistryImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,LocalChangelogRegistry
-
Field Summary
Fields inherited from interface org.apache.flink.runtime.state.changelog.LocalChangelogRegistry
NO_OP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voiddiscardUpToCheckpoint(long upTo) Called upon ChangelogKeyedStateBackend#notifyCheckpointComplete and ChangelogKeyedStateBackend#notifyCheckpointSubsumed.voidregister(StreamStateHandle handle, long checkpointID) Called upon ChangelogKeyedStateBackend#notifyCheckpointComplete.
-
Constructor Details
-
LocalChangelogRegistryImpl
-
-
Method Details
-
register
Description copied from interface:LocalChangelogRegistryCalled upon ChangelogKeyedStateBackend#notifyCheckpointComplete.- Specified by:
registerin interfaceLocalChangelogRegistry- Parameters:
handle- handle to register.checkpointID- latest used checkpointID.
-
discardUpToCheckpoint
public void discardUpToCheckpoint(long upTo) Description copied from interface:LocalChangelogRegistryCalled upon ChangelogKeyedStateBackend#notifyCheckpointComplete and ChangelogKeyedStateBackend#notifyCheckpointSubsumed. Remote dstl handles are unregistered whenCompletedCheckpointStore.addCheckpointAndSubsumeOldestOne(org.apache.flink.runtime.checkpoint.CompletedCheckpoint, org.apache.flink.runtime.checkpoint.CheckpointsCleaner, java.lang.Runnable), local dtsl handles are unregistered when the checkpoint completes, because only one checkpoint is kept for local recovery.- Specified by:
discardUpToCheckpointin interfaceLocalChangelogRegistry- Parameters:
upTo- lowest CheckpointID which is still valid.
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-