Package com.liferay.portal.kernel.search
Class ReindexCacheThreadLocal
java.lang.Object
com.liferay.portal.kernel.search.ReindexCacheThreadLocal
- Author:
- Shuyang Zhou
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TgetGlobalReindexCache(Supplier<Integer> countSupplier, String ownerName, IntFunction<T> reindexCacheFunction) static <T> TgetScopeReindexCache(String ownerName, String scopeName, Supplier<Integer> countSupplier, Supplier<Integer> scopeCountSupplier, IntFunction<T> reindexCacheFunction) static booleanstatic com.liferay.petra.lang.SafeCloseablestatic com.liferay.petra.lang.SafeCloseableopenReindexMode(boolean fullMode, Map<String, Object> sharedReindexCacheMap) static <T> Callable<T> wrapCallable(Callable<T> callable)
-
Constructor Details
-
ReindexCacheThreadLocal
public ReindexCacheThreadLocal()
-
-
Method Details
-
getGlobalReindexCache
public static <T> T getGlobalReindexCache(Supplier<Integer> countSupplier, String ownerName, IntFunction<T> reindexCacheFunction) -
getScopeReindexCache
-
isFullMode
public static boolean isFullMode() -
openReindexMode
public static com.liferay.petra.lang.SafeCloseable openReindexMode() -
openReindexMode
-
wrapCallable
-