public interface

TenantManager

implements InitializingComponent
com.atlassian.jira.tenancy.TenantManager
Known Indirect Subclasses

Class Overview

Manages the tenant arrival used by InstantOn. Its main responsibility is to hold a list of arbitrary tasks that should only be run once a Tenant has arrived (or immediately if we're already tenanted).

Summary

Public Methods
void doNowOrWhenTenantArrives(Runnable runnable, String description)
Run this function immediately if there is a tenant.
boolean isTenanted()
ServiceResult tenantArrived()
Called when a tenant arrives via DefaultLandlordRequests
[Expand]
Inherited Methods
From interface com.atlassian.jira.InitializingComponent

Public Methods

public void doNowOrWhenTenantArrives (Runnable runnable, String description)

Run this function immediately if there is a tenant. Otherwise run it when a tenant arrives.

Parameters
runnable the function to run
description description of the function

public boolean isTenanted ()

Returns
  • true if this instance has a tenant

public ServiceResult tenantArrived ()

Called when a tenant arrives via DefaultLandlordRequests