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. *
The caller does not need to synchronize when calling this method since it will be done internally.
* @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. *The caller does not need to synchronize when calling this method since it will be done internally.
*/ public void decrementActivityCounter(); }//IWebApplicationContainer//