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 ThreadLocalIndexerControl
getInstance()
boolean
indexingDisabled()
boolean
indexingEnabled()
void
resume()
Enable indexing.void
suspend()
Disable indexing.
-
-
-
Method Detail
-
getInstance
public static ThreadLocalIndexerControl getInstance()
-
suspend
public void suspend()
Description copied from interface:IndexerControl
Disable indexing.- Specified by:
suspend
in interfaceIndexerControl
-
resume
public void resume()
Description copied from interface:IndexerControl
Enable indexing.- Specified by:
resume
in interfaceIndexerControl
-
indexingEnabled
public boolean indexingEnabled()
- Specified by:
indexingEnabled
in interfaceIndexerControl
- Returns:
- true if indexing enabled, false otherwise.
-
indexingDisabled
public boolean indexingDisabled()
- Specified by:
indexingDisabled
in interfaceIndexerControl
- Returns:
- true if indexing disabled, false otherwise.
-
-