Package com.atlassian.confluence.search
Class ThreadLocalIndexerControl
- java.lang.Object
-
- com.atlassian.confluence.search.ThreadLocalIndexerControl
-
- All Implemented Interfaces:
IndexerControl
public class ThreadLocalIndexerControl extends Object implements IndexerControl
Allows the enabling and disabling of indexing for the current executing thread.
-
-
Constructor Summary
Constructors Constructor Description ThreadLocalIndexerControl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ThreadLocalIndexerControlgetInstance()booleanindexingDisabled()booleanindexingEnabled()voidresume()Enable indexing.voidsuspend()Disable indexing.
-
-
-
Method Detail
-
getInstance
public static ThreadLocalIndexerControl getInstance()
-
suspend
public void suspend()
Description copied from interface:IndexerControlDisable indexing.- Specified by:
suspendin interfaceIndexerControl
-
resume
public void resume()
Description copied from interface:IndexerControlEnable indexing.- Specified by:
resumein interfaceIndexerControl
-
indexingEnabled
public boolean indexingEnabled()
- Specified by:
indexingEnabledin interfaceIndexerControl- Returns:
- true if indexing enabled, false otherwise.
-
indexingDisabled
public boolean indexingDisabled()
- Specified by:
indexingDisabledin interfaceIndexerControl- Returns:
- true if indexing disabled, false otherwise.
-
-