Class Tenant

java.lang.Object
org.apache.kafka.common.Tenant

public class Tenant extends Object
Represents the contents of a tenant.
  • Constructor Details

    • Tenant

      public Tenant(String tenantId, List<Integer> cellIds)
      Creates a tenant. This constructor accepts a list of Integers of cell-ids and As the passed in list will not be copied, it should be unmodifiable
      Parameters:
      tenantId - the unique tenant ID
      cellIds - the list of cell the tenant is assigned
  • Method Details

    • tenantId

      public String tenantId()
      The unique tenant ID
      Returns:
      tenant ID
    • cellIds

      public List<Integer> cellIds()
      The cell ID
      Returns:
      cell ID
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object