com.intellij.util.concurrency.readwrite
Class WriteActionWaiter

java.lang.Object
  extended by com.intellij.util.concurrency.readwrite.AbstractWaiter
      extended by com.intellij.util.concurrency.readwrite.WriteActionWaiter
All Implemented Interfaces:
ApplicationListener, java.lang.Runnable, java.util.EventListener

public class WriteActionWaiter
extends AbstractWaiter
implements ApplicationListener


Constructor Summary
WriteActionWaiter(java.lang.Runnable aActionRunnable)
           
 
Method Summary
 void applicationExiting()
          Is called when application is exiting.
 void beforeWriteActionStart(java.lang.Object action)
          Is called before action start.
 boolean canExitApplication()
          This method is called to check whether the Application is ready to exit.
 void writeActionFinished(java.lang.Object aRunnable)
          Is called on action finish.
 void writeActionStarted(java.lang.Object action)
          Is called on action start.
 
Methods inherited from class com.intellij.util.concurrency.readwrite.AbstractWaiter
run, setFinished, waitForCompletion, waitForCompletion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteActionWaiter

public WriteActionWaiter(java.lang.Runnable aActionRunnable)
Method Detail

writeActionFinished

public void writeActionFinished(java.lang.Object aRunnable)
Description copied from interface: ApplicationListener
Is called on action finish.

Specified by:
writeActionFinished in interface ApplicationListener

applicationExiting

public void applicationExiting()
Description copied from interface: ApplicationListener
Is called when application is exiting.

Specified by:
applicationExiting in interface ApplicationListener

beforeWriteActionStart

public void beforeWriteActionStart(java.lang.Object action)
Description copied from interface: ApplicationListener
Is called before action start.

Specified by:
beforeWriteActionStart in interface ApplicationListener

canExitApplication

public boolean canExitApplication()
Description copied from interface: ApplicationListener
This method is called to check whether the Application is ready to exit.

Specified by:
canExitApplication in interface ApplicationListener
Returns:
true or false

writeActionStarted

public void writeActionStarted(java.lang.Object action)
Description copied from interface: ApplicationListener
Is called on action start.

Specified by:
writeActionStarted in interface ApplicationListener