public class BroadcastingTenantRegistry extends Object implements TenantRegistry
TenantRegistry 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 no TenantArrivedEvent 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 the VolatileSingleTenantRegistry
which will not broadcast any events of the API.
| Constructor and Description |
|---|
BroadcastingTenantRegistry(TenantRegistry delegate,
com.atlassian.event.api.EventPublisher eventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addTenant(com.atlassian.tenancy.api.Tenant tenant) |
boolean |
isRegistryVacant() |
boolean |
isTenantRegistered(com.atlassian.tenancy.api.Tenant tenant) |
boolean |
removeTenant(com.atlassian.tenancy.api.Tenant tenant) |
public BroadcastingTenantRegistry(TenantRegistry delegate, com.atlassian.event.api.EventPublisher eventPublisher)
public boolean addTenant(com.atlassian.tenancy.api.Tenant tenant)
addTenant in interface TenantRegistrytenant - the tenant to addpublic boolean removeTenant(com.atlassian.tenancy.api.Tenant tenant)
removeTenant in interface TenantRegistrytenant - the tenant to removepublic boolean isTenantRegistered(com.atlassian.tenancy.api.Tenant tenant)
isTenantRegistered in interface TenantRegistrytenant - the tenant to test for being registeredpublic boolean isRegistryVacant()
isRegistryVacant in interface TenantRegistryCopyright © 2003–2018 Atlassian. All rights reserved.