Class TenantGitRepositoryContextCache
- java.lang.Object
-
- org.wso2.carbon.deployment.synchronizer.git.TenantGitRepositoryContextCache
-
public class TenantGitRepositoryContextCache extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcacheTenantGitRepoContext(int tenantId, TenantGitRepositoryContext gitRepoCtx)Caches the TenantGitRepositoryContext instance for the tenantstatic TenantGitRepositoryContextCachegetTenantRepositoryContextCache()Access method for TenantGitRepositoryContextCache singleton instancevoidremoveCachedTenantGitContext(int tenantId)Remove the cached TenantGitRepositoryContext instance for a tenantTenantGitRepositoryContextretrieveCachedTenantGitContext(int tenantId)Retrieve the cached TenantGitRepositoryContext instance for a tenantvoidupdateTenantGitRepositoryContext(int tenantId, TenantGitRepositoryContext gitRepoCtx)Update the cached TenantGitRepositoryContext instance for a tenant
-
-
-
Method Detail
-
getTenantRepositoryContextCache
public static TenantGitRepositoryContextCache getTenantRepositoryContextCache()
Access method for TenantGitRepositoryContextCache singleton instance- Returns:
- TenantGitRepositoryContextCache instance
-
cacheTenantGitRepoContext
public void cacheTenantGitRepoContext(int tenantId, TenantGitRepositoryContext gitRepoCtx)Caches the TenantGitRepositoryContext instance for the tenant- Parameters:
tenantId- tenant IdgitRepoCtx- TenantGitRepositoryContext instance
-
retrieveCachedTenantGitContext
public TenantGitRepositoryContext retrieveCachedTenantGitContext(int tenantId)
Retrieve the cached TenantGitRepositoryContext instance for a tenant- Parameters:
tenantId- tenant Id- Returns:
- c if available, else null
-
updateTenantGitRepositoryContext
public void updateTenantGitRepositoryContext(int tenantId, TenantGitRepositoryContext gitRepoCtx)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
-
-