Files
Brainstorm/Foundation Web Interfaces/src/com/foundation/web/interfaces/IWebApplicationContainer.java
2014-05-30 10:31:51 -07:00

17 lines
974 B
Java

package com.foundation.web.interfaces;
public interface IWebApplicationContainer {
/**
* Increments the activity counter, allowing safe access to the web application until the counter is decremented.
* This method blocks until the activity counter can be incremented.
* Blocking may occur if the application is in the middle of, or has a pending reload or unload.
* <p>The caller does not need to synchronize when calling this method since it will be done internally.</p>
* @return Whether the activity counter could be incremented. This will only be false if the application has been closed while the thread was waiting.
*/
public boolean incrementActivityCounter();
/**
* Decrements the activity counter and runs the unload/reload thread for the web application if one is waiting.
* <p>The caller does not need to synchronize when calling this method since it will be done internally.</p>
*/
public void decrementActivityCounter();
}//IWebApplicationContainer//