Interface ClusterContext

All Known Implementing Classes:
ClusterContextImpl

public interface ClusterContext
Provides context information about the cluster such as all partition ids. This information is not updated when cluster topology changes and is only meant for initialization where correctness or consistency is not required.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the number of partitions in the cluster.
  • Method Details

    • partitionCount

      int partitionCount()
      Returns the number of partitions in the cluster. Reflects some state of the cluster at the time of processor initialization and does not update when the cluster topology changes.