Interface MemberAssignmentState


@Public @Evolving public interface MemberAssignmentState
The active, standby, and warm-up tasks that a streams group member currently has, used by the TaskAssignor to compute a new target assignment.

All maps returned by this interface, including their nested collections, are unmodifiable.

  • Method Details

    • activeTasks

      Map<String, Set<Integer>> activeTasks()
      Returns:
      The member's current active tasks keyed by subtopology Id.
    • standbyTasks

      Map<String, Set<Integer>> standbyTasks()
      Returns:
      The member's current standby tasks keyed by subtopology Id.
    • warmupTasks

      Map<String, Set<Integer>> warmupTasks()
      Returns:
      The tasks the member is currently warming up, keyed by subtopology Id.
    • taskOffsets

      Map<String, Map<Integer,Long>> taskOffsets()
      Returns:
      The last received cumulative task offsets of assigned tasks or dormant tasks. The outer map is keyed by subtopology ID and the inner map by partition.
    • taskEndOffsets

      Map<String, Map<Integer,Long>> taskEndOffsets()
      Returns:
      The last received cumulative task end offsets of assigned tasks or dormant tasks. The outer map is keyed by subtopology ID and the inner map by partition.