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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceKinesisShardAssigner.ContextImmutable information about the Flink cluster useful for deciding which subtask to assign a given split.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intassign(KinesisShardSplit split, KinesisShardAssigner.Context context)Controls the assignment of a given split to a specific subtask.
-
-
-
Method Detail
-
assign
int assign(KinesisShardSplit split, KinesisShardAssigner.Context context)
Controls the assignment of a given split to a specific subtask. TheKinesisShardAssigner.Contextobject 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 assigncontext- immutable information about the Flink cluster- Returns:
- subtaskId to assign given split
-
-