com.atlassian.confluence.search
Class ThreadLocalIndexerControl

java.lang.Object
  extended by com.atlassian.confluence.search.ThreadLocalIndexerControl
All Implemented Interfaces:
IndexerControl

public class ThreadLocalIndexerControl
extends java.lang.Object
implements IndexerControl

Allows the enabling and disabling of indexing for the current executing thread.


Constructor Summary
ThreadLocalIndexerControl()
           
 
Method Summary
static ThreadLocalIndexerControl getInstance()
           
 boolean indexingDisabled()
           
 boolean indexingEnabled()
           
 void resume()
          Enable indexing.
 void suspend()
          Disable indexing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalIndexerControl

public ThreadLocalIndexerControl()
Method Detail

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.


Copyright © 2003-2010 Atlassian. All Rights Reserved.