public class TenantGitRepositoryContextCache extends Object
Modifier and Type | Method and Description |
---|---|
void |
cacheTenantGitRepoContext(int tenantId,
TenantGitRepositoryContext gitRepoCtx)
Caches the TenantGitRepositoryContext instance for the tenant
|
static TenantGitRepositoryContextCache |
getTenantRepositoryContextCache()
Access method for TenantGitRepositoryContextCache singleton instance
|
void |
removeCachedTenantGitContext(int tenantId)
Remove the cached TenantGitRepositoryContext instance for a tenant
|
TenantGitRepositoryContext |
retrieveCachedTenantGitContext(int tenantId)
Retrieve the cached TenantGitRepositoryContext instance for a tenant
|
void |
updateTenantGitRepositoryContext(int tenantId,
TenantGitRepositoryContext gitRepoCtx)
Update the cached TenantGitRepositoryContext instance for a tenant
|
public static TenantGitRepositoryContextCache getTenantRepositoryContextCache()
public void cacheTenantGitRepoContext(int tenantId, TenantGitRepositoryContext gitRepoCtx)
tenantId
- tenant IdgitRepoCtx
- TenantGitRepositoryContext instancepublic TenantGitRepositoryContext retrieveCachedTenantGitContext(int tenantId)
tenantId
- tenant Idpublic void updateTenantGitRepositoryContext(int tenantId, TenantGitRepositoryContext gitRepoCtx)
tenantId
- tenant IdgitRepoCtx
- the cached TenantGitRepositoryContext instance to updatepublic void removeCachedTenantGitContext(int tenantId)
tenantId
- tenant IdCopyright © 2017 WSO2. All rights reserved.