Interface PartitionGroupReleaseStrategy

All Known Implementing Classes:
NotReleasingPartitionGroupReleaseStrategy, RegionPartitionGroupReleaseStrategy

public interface PartitionGroupReleaseStrategy
Interface for strategies that decide when to release ConsumedPartitionGroups.
  • Method Details

    • vertexFinished

      List<ConsumedPartitionGroup> vertexFinished(ExecutionVertexID finishedVertex)
      Calling this method informs the strategy that a vertex finished.
      Parameters:
      finishedVertex - Id of the vertex that finished the execution
      Returns:
      A list of ConsumedPartitionGroups that can be released
    • vertexUnfinished

      void vertexUnfinished(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.
      Parameters:
      executionVertexID - Id of the vertex that is no longer in finished state.