public class Tenant extends Object
Constructor and Description |
---|
Tenant(org.apache.kafka.common.message.DescribeTenantsResponseData.TenantDescription tenant)
Constructor of the tenant class using the DescribeTenantsResponseData.TenantDescription object
|
Tenant(String tenantId,
Integer cellId,
org.apache.kafka.common.PartitionPlacementStrategy placementPolicy)
Constructor of the tenant class using the tenant id, cell id and placement policy.
|
Modifier and Type | Method and Description |
---|---|
Integer |
cellId()
Return the cell the tenant is assigned to.
|
boolean |
equals(Object o) |
int |
hashCode() |
org.apache.kafka.common.PartitionPlacementStrategy |
placementPolicy()
Return the placement policy.
|
String |
tenantId()
Return tenant id of the tenant.
|
String |
toString() |
public Tenant(String tenantId, Integer cellId, org.apache.kafka.common.PartitionPlacementStrategy placementPolicy)
public Tenant(org.apache.kafka.common.message.DescribeTenantsResponseData.TenantDescription tenant)