Introduce runtime manager
[lgpl/argeo-commons.git] / org.argeo.init / src / org / argeo / init / RuntimeContext.java
index 7dd8e6c0c65832ed499c097d8e4508d74520bcbe..d83f2ca1c22cb04bf7fad1a1a95e1ce575d256b5 100644 (file)
@@ -1,5 +1,10 @@
 package org.argeo.init;
 
-public interface RuntimeContext extends Runnable, AutoCloseable {
+/** A runtime context with a life cycle. */
+public interface RuntimeContext extends Runnable {
+       /** Wait until this runtime context has closed. */
        void waitForStop(long timeout) throws InterruptedException;
+
+       /** Close this runtime context. */
+       void close() throws Exception;
 }