Package com.atlassian.confluence.cluster
Class ReIndexingScopeThreadLocal
- java.lang.Object
-
- com.atlassian.confluence.cluster.ReIndexingScopeThreadLocal
-
public class ReIndexingScopeThreadLocal extends Object
Control whether a reindex should happen cluster-wide or within current node only- Since:
- 7.5.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReIndexingScopeThreadLocal.ReIndexingScope
-
Constructor Summary
Constructors Constructor Description ReIndexingScopeThreadLocal()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReIndexingScopeThreadLocal.ReIndexingScopecurrentScope()static voidwithScope(ReIndexingScopeThreadLocal.ReIndexingScope scope, Runnable runnable)Execute aRunnablewith specified scope
-
-
-
Method Detail
-
currentScope
public static ReIndexingScopeThreadLocal.ReIndexingScope currentScope()
- Returns:
- current scope of reindex
-
withScope
public static void withScope(ReIndexingScopeThreadLocal.ReIndexingScope scope, Runnable runnable)
Execute aRunnablewith specified scope- Parameters:
scope- the reindexing scope thatrunnableshould be executed underrunnable- a processing that needs to be done under certain reindexing scope
-
-