Package fr.becpg.repo.repository
Class L2CacheSupport
java.lang.Object
fr.becpg.repo.repository.L2CacheSupport
L2CacheSupport class.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddoInCacheContext(L2CacheSupport.Action action, boolean isCacheOnlyEnable, boolean isThreadLockEnable) doInCacheContext.static voiddoInCacheContext(L2CacheSupport.Action action, boolean isCacheOnlyEnable, boolean isThreadLockEnable, boolean isSilentModeEnable) doInCacheContext.static voiddoInCacheOnly(L2CacheSupport.Action action) doInCacheContext.static org.alfresco.service.cmr.repository.NodeRefgenerateNodeRef.static <T> Map<org.alfresco.service.cmr.repository.NodeRef,RepositoryEntity> getCurrentThreadCache.static booleanisCacheOnlyEnable.static booleanisSilentModeEnable.static booleanisThreadCacheEnable.static booleanisThreadLockEnable.
-
Field Details
-
threadLocalCache
-
-
Constructor Details
-
L2CacheSupport
public L2CacheSupport()
-
-
Method Details
-
getCurrentThreadCache
public static <T> Map<org.alfresco.service.cmr.repository.NodeRef,RepositoryEntity> getCurrentThreadCache()getCurrentThreadCache.
- Type Parameters:
T- a T class- Returns:
- a
Mapobject.
-
isCacheOnlyEnable
public static boolean isCacheOnlyEnable()isCacheOnlyEnable.
- Returns:
- a boolean.
-
generateNodeRef
public static org.alfresco.service.cmr.repository.NodeRef generateNodeRef()generateNodeRef.
- Returns:
- a
NodeRefobject.
-
isThreadCacheEnable
public static boolean isThreadCacheEnable()isThreadCacheEnable.
- Returns:
- a boolean.
-
isThreadLockEnable
public static boolean isThreadLockEnable()isThreadLockEnable.
- Returns:
- a boolean.
-
isSilentModeEnable
public static boolean isSilentModeEnable()isSilentModeEnable.
- Returns:
- a boolean
-
doInCacheOnly
doInCacheContext.
- Parameters:
action- aL2CacheSupport.Actionobject.
-
doInCacheContext
public static void doInCacheContext(L2CacheSupport.Action action, boolean isCacheOnlyEnable, boolean isThreadLockEnable) doInCacheContext.
- Parameters:
action- aL2CacheSupport.Actionobject.isCacheOnlyEnable- a boolean.isThreadLockEnable- a boolean.
-
doInCacheContext
public static void doInCacheContext(L2CacheSupport.Action action, boolean isCacheOnlyEnable, boolean isThreadLockEnable, boolean isSilentModeEnable) doInCacheContext.
- Parameters:
action- aL2CacheSupport.ActionobjectisCacheOnlyEnable- a booleanisThreadLockEnable- a booleanisSilentModeEnable- a boolean
-