Package com.atlassian.confluence.tenant
Class BroadcastingTenantRegistry
- java.lang.Object
-
- com.atlassian.confluence.tenant.BroadcastingTenantRegistry
-
- All Implemented Interfaces:
TenantRegistry
@Deprecated(forRemoval=true) public class BroadcastingTenantRegistry extends Object implements TenantRegistry
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6Decorator forTenantRegistry
which publishes the events specified in the Atlassian Tenancy API.The separation between
VolatileSingleTenantRegistry
and this implementation is currently necessary since the tenant is not persisted (within Confluence). There should be noTenantArrivedEvent
published in case of an existing tenant being replayed. This is achieved by replaying the tenant very early in the bootstrap, during the initialisation of the bootstrap container. The bootstrap container hosts theVolatileSingleTenantRegistry
which will not broadcast any events of the API.- Since:
- 5.6
-
-
Constructor Summary
Constructors Constructor Description BroadcastingTenantRegistry(TenantRegistry delegate, com.atlassian.event.api.EventPublisher eventPublisher)
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods 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.boolean
isRegistryVacant()
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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.tenant.TenantRegistry
hasTenant
-
-
-
-
Constructor Detail
-
BroadcastingTenantRegistry
public BroadcastingTenantRegistry(TenantRegistry delegate, com.atlassian.event.api.EventPublisher eventPublisher)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
addTenant
public boolean addTenant(com.atlassian.tenancy.api.Tenant tenant)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
addTenant
in interfaceTenantRegistry
- Parameters:
tenant
- the tenant to add- Returns:
- true if the tenant was added during this request, false if the registry already knew it
-
removeTenant
public boolean removeTenant(com.atlassian.tenancy.api.Tenant tenant)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
removeTenant
in interfaceTenantRegistry
- Parameters:
tenant
- the tenant to remove- Returns:
- true if the tenant was removed, false if the registry didn't know about it
-
isTenantRegistered
public boolean isTenantRegistered(com.atlassian.tenancy.api.Tenant tenant)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isTenantRegistered
in interfaceTenantRegistry
- Parameters:
tenant
- the tenant to test for being registered- Returns:
- true if the tenant is currently registered
-
isRegistryVacant
public boolean isRegistryVacant()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isRegistryVacant
in interfaceTenantRegistry
- Returns:
- true if the registry currently has no tenants
-
-