Interface KinesisShardAssigner

  • All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    UniformShardAssigner

    @Experimental
    public interface KinesisShardAssigner
    extends Serializable
    Interface that controls the mapping of the split to a given subtask.
    • Method Detail

      • assign

        int assign​(KinesisShardSplit split,
                   KinesisShardAssigner.Context context)
        Controls the assignment of a given split to a specific subtask. The KinesisShardAssigner.Context object provides immutable information for the current status of the Flink cluster (e.g. number of registered readers, current split assignments).
        Parameters:
        split - the split to assign
        context - immutable information about the Flink cluster
        Returns:
        subtaskId to assign given split