Interface PartitionGroupReleaseStrategy
- All Known Implementing Classes:
NotReleasingPartitionGroupReleaseStrategy,RegionPartitionGroupReleaseStrategy
public interface PartitionGroupReleaseStrategy
Interface for strategies that decide when to release
ConsumedPartitionGroups.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvertexFinished(ExecutionVertexID finishedVertex) Calling this method informs the strategy that a vertex finished.voidvertexUnfinished(ExecutionVertexID executionVertexID) Calling this method informs the strategy that a vertex is no longer in finished state, e.g., when a vertex is re-executed.
-
Method Details
-
vertexFinished
Calling this method informs the strategy that a vertex finished.- Parameters:
finishedVertex- Id of the vertex that finished the execution- Returns:
- A list of
ConsumedPartitionGroupsthat can be released
-
vertexUnfinished
Calling this method informs the strategy that a vertex is no longer in finished state, e.g., when a vertex is re-executed.- Parameters:
executionVertexID- Id of the vertex that is no longer in finished state.
-