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 class
ReIndexingScopeThreadLocal.ReIndexingScope
-
Constructor Summary
Constructors Constructor Description ReIndexingScopeThreadLocal()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReIndexingScopeThreadLocal.ReIndexingScope
currentScope()
static void
withScope(ReIndexingScopeThreadLocal.ReIndexingScope scope, Runnable runnable)
Execute aRunnable
with 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 aRunnable
with specified scope- Parameters:
scope
- the reindexing scope thatrunnable
should be executed underrunnable
- a processing that needs to be done under certain reindexing scope
-
-