Package com.atlassian.confluence.cluster
Class ReIndexingScopeThreadLocal
java.lang.Object
com.atlassian.confluence.cluster.ReIndexingScopeThreadLocal
Control whether a reindex should happen cluster-wide or within current node only
- Since:
- 7.5.0
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
withScope
(ReIndexingScopeThreadLocal.ReIndexingScope scope, Runnable runnable) Execute aRunnable
with specified scope
-
Constructor Details
-
ReIndexingScopeThreadLocal
public ReIndexingScopeThreadLocal()
-
-
Method Details
-
currentScope
- Returns:
- current scope of reindex
-
withScope
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
-