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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadLocalIndexerControl
public ThreadLocalIndexerControl()
getInstance
public static ThreadLocalIndexerControl getInstance()
suspend
public void suspend()
- Description copied from interface:
IndexerControl
- Disable indexing.
- Specified by:
suspend
in interface IndexerControl
resume
public void resume()
- Description copied from interface:
IndexerControl
- Enable indexing.
- Specified by:
resume
in interface IndexerControl
indexingEnabled
public boolean indexingEnabled()
- Specified by:
indexingEnabled
in interface IndexerControl
- Returns:
- true if indexing enabled, false otherwise.
indexingDisabled
public boolean indexingDisabled()
- Specified by:
indexingDisabled
in interface IndexerControl
- Returns:
- true if indexing disabled, false otherwise.