Package org.apache.flink.state.common
Interface PeriodicMaterializationManager.MaterializationTarget
- Enclosing class:
- PeriodicMaterializationManager
@NotThreadSafe
public static interface PeriodicMaterializationManager.MaterializationTarget
PeriodicMaterializationManager.MaterializationRunnable provider and consumer, i.e. state backend.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PeriodicMaterializationManager.MaterializationTarget -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleMaterializationFailureOrCancellation(long materializationID, org.apache.flink.runtime.state.changelog.SequenceNumber upTo, Throwable cause) voidhandleMaterializationResult(org.apache.flink.runtime.state.SnapshotResult<org.apache.flink.runtime.state.KeyedStateHandle> materializedSnapshot, long materializationID, org.apache.flink.runtime.state.changelog.SequenceNumber upTo) Implementations should not trigger materialization until the previous one has been confirmed or failed.Initialize state materialization so that materialized data can be persisted durably and included into the checkpoint.
-
Field Details
-
NO_OP
-
-
Method Details
-
initMaterialization
Optional<PeriodicMaterializationManager.MaterializationRunnable> initMaterialization() throws ExceptionInitialize state materialization so that materialized data can be persisted durably and included into the checkpoint.- Returns:
- a tuple of - future snapshot result from the underlying state backend - a
SequenceNumberidentifying the latest change in the changelog - Throws:
Exception
-
handleMaterializationResult
void handleMaterializationResult(org.apache.flink.runtime.state.SnapshotResult<org.apache.flink.runtime.state.KeyedStateHandle> materializedSnapshot, long materializationID, org.apache.flink.runtime.state.changelog.SequenceNumber upTo) throws Exception Implementations should not trigger materialization until the previous one has been confirmed or failed.- Throws:
Exception
-
handleMaterializationFailureOrCancellation
void handleMaterializationFailureOrCancellation(long materializationID, org.apache.flink.runtime.state.changelog.SequenceNumber upTo, Throwable cause)
-