@ParametersAreNonnullByDefault public final class JiraVCacheInitialisationUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
cleanupVCache()
Executes any transactions associated with current request context and cleans it up.
|
static JiraTenantImpl |
getFakeTenant()
Temporary method to get current tenant as
TenantContext is not implemented correctly in JIRA. |
static boolean |
initVCache()
Initialises thread local request context for VCache with the tenant supplied by
TenantContext . |
static boolean |
initVCache(JiraTenantImpl currentTenant)
Initialises thread local request context for VCache with the tenant provided as a parameter.
|
public static boolean initVCache()
TenantContext
.public static boolean initVCache(JiraTenantImpl currentTenant)
currentTenant
- tenant with which request context will be initialised.public static void cleanupVCache()
public static JiraTenantImpl getFakeTenant()
TenantContext
is not implemented correctly in JIRA. For the
time being it should be called by anything that needs current tenant.
NOTE: This method will be removed once JVC-18 is fixed.Copyright © 2002-2023 Atlassian. All Rights Reserved.