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 voidwithScope(ReIndexingScopeThreadLocal.ReIndexingScope scope, Runnable runnable) Execute aRunnablewith specified scope
-
Constructor Details
-
ReIndexingScopeThreadLocal
public ReIndexingScopeThreadLocal()
-
-
Method Details
-
currentScope
- Returns:
- current scope of reindex
-
withScope
Execute aRunnablewith specified scope- Parameters:
scope- the reindexing scope thatrunnableshould be executed underrunnable- a processing that needs to be done under certain reindexing scope
-