Class TenantGitRepositoryContextCache
java.lang.Object
org.wso2.carbon.deployment.synchronizer.git.TenantGitRepositoryContextCache
-
Method Summary
Modifier and TypeMethodDescriptionvoidcacheTenantGitRepoContext(int tenantId, TenantGitRepositoryContext gitRepoCtx) Caches the TenantGitRepositoryContext instance for the tenantAccess method for TenantGitRepositoryContextCache singleton instancevoidremoveCachedTenantGitContext(int tenantId) Remove the cached TenantGitRepositoryContext instance for a tenantretrieveCachedTenantGitContext(int tenantId) Retrieve the cached TenantGitRepositoryContext instance for a tenantvoidupdateTenantGitRepositoryContext(int tenantId, TenantGitRepositoryContext gitRepoCtx) Update the cached TenantGitRepositoryContext instance for a tenant
-
Method Details
-
getTenantRepositoryContextCache
Access method for TenantGitRepositoryContextCache singleton instance- Returns:
- TenantGitRepositoryContextCache instance
-
cacheTenantGitRepoContext
Caches the TenantGitRepositoryContext instance for the tenant- Parameters:
tenantId- tenant IdgitRepoCtx- TenantGitRepositoryContext instance
-
retrieveCachedTenantGitContext
Retrieve the cached TenantGitRepositoryContext instance for a tenant- Parameters:
tenantId- tenant Id- Returns:
- c if available, else null
-
updateTenantGitRepositoryContext
Update the cached TenantGitRepositoryContext instance for a tenant- Parameters:
tenantId- tenant IdgitRepoCtx- the cached TenantGitRepositoryContext instance to update
-
removeCachedTenantGitContext
public void removeCachedTenantGitContext(int tenantId) Remove the cached TenantGitRepositoryContext instance for a tenant- Parameters:
tenantId- tenant Id
-