Class DefaultSubtaskAttemptNumberStore

java.lang.Object
org.apache.flink.runtime.executiongraph.DefaultSubtaskAttemptNumberStore
All Implemented Interfaces:
SubtaskAttemptNumberStore

public class DefaultSubtaskAttemptNumberStore extends Object implements SubtaskAttemptNumberStore
Simple container for subtask attempt counts backed by a list.
  • Constructor Details

    • DefaultSubtaskAttemptNumberStore

      public DefaultSubtaskAttemptNumberStore(List<Integer> attemptCounts)
  • Method Details

    • getAttemptCount

      public int getAttemptCount(int subtaskIndex)
      Description copied from interface: SubtaskAttemptNumberStore
      Returns the attempt number for the given subtask.
      Specified by:
      getAttemptCount in interface SubtaskAttemptNumberStore
      Parameters:
      subtaskIndex - subtask to return the attempt number for
      Returns:
      attempt number for the given subtask