Class ReindexCacheThreadLocal

java.lang.Object
com.liferay.portal.kernel.search.ReindexCacheThreadLocal

public class ReindexCacheThreadLocal extends Object
Author:
Shuyang Zhou
  • Constructor Details

    • ReindexCacheThreadLocal

      public ReindexCacheThreadLocal()
  • Method Details

    • getGlobalReindexCache

      public static <T> T getGlobalReindexCache(Supplier<Integer> countSupplier, String ownerName, IntFunction<T> reindexCacheFunction)
    • getScopeReindexCache

      public static <T> T getScopeReindexCache(String ownerName, String scopeName, Supplier<Integer> countSupplier, Supplier<Integer> scopeCountSupplier, IntFunction<T> reindexCacheFunction)
    • isFullMode

      public static boolean isFullMode()
    • openReindexMode

      public static com.liferay.petra.lang.SafeCloseable openReindexMode()
    • openReindexMode

      public static com.liferay.petra.lang.SafeCloseable openReindexMode(boolean fullMode, Map<String,Object> sharedReindexCacheMap)
    • wrapCallable

      public static <T> Callable<T> wrapCallable(Callable<T> callable)