Package com.atlassian.confluence.tenant
Interface TenantRegistry
-
- All Known Implementing Classes:
BroadcastingTenantRegistry,VolatileSingleTenantRegistry
@ExperimentalApi public interface TenantRegistryRelies on the tenant object's identity.- Since:
- 5.6
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanaddTenant(com.atlassian.tenancy.api.Tenant tenant)default booleanhasTenant()booleanisRegistryVacant()booleanisTenantRegistered(com.atlassian.tenancy.api.Tenant tenant)booleanremoveTenant(com.atlassian.tenancy.api.Tenant tenant)
-
-
-
Method Detail
-
addTenant
boolean addTenant(com.atlassian.tenancy.api.Tenant tenant)
- Parameters:
tenant- the tenant to add- Returns:
- true if the tenant was added during this request, false if the registry already knew it
-
removeTenant
boolean removeTenant(com.atlassian.tenancy.api.Tenant tenant)
- Parameters:
tenant- the tenant to remove- Returns:
- true if the tenant was removed, false if the registry didn't know about it
-
isTenantRegistered
boolean isTenantRegistered(com.atlassian.tenancy.api.Tenant tenant)
- Parameters:
tenant- the tenant to test for being registered- Returns:
- true if the tenant is currently registered
-
isRegistryVacant
boolean isRegistryVacant()
- Returns:
- true if the registry currently has no tenants
-
hasTenant
default boolean hasTenant()
-
-