Interface TenantRegistry

All Known Implementing Classes:
BroadcastingTenantRegistry, VolatileSingleTenantRegistry

@Deprecated(forRemoval=true) @ExperimentalApi public interface TenantRegistry
Deprecated, for removal: This API element is subject to removal in a future version.
since 8.6
Relies on the tenant object's identity.
Since:
5.6
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addTenant(com.atlassian.tenancy.api.Tenant tenant)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    default boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    isTenantRegistered(com.atlassian.tenancy.api.Tenant tenant)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    removeTenant(com.atlassian.tenancy.api.Tenant tenant)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Details

    • addTenant

      boolean addTenant(com.atlassian.tenancy.api.Tenant tenant)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      tenant - the tenant to test for being registered
      Returns:
      true if the tenant is currently registered
    • isRegistryVacant

      boolean isRegistryVacant()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      true if the registry currently has no tenants
    • hasTenant

      default boolean hasTenant()
      Deprecated, for removal: This API element is subject to removal in a future version.