Merge tag 'v2.3.28' into testing
[lgpl/argeo-commons.git] / org.argeo.init / src / org / argeo / api / init / RuntimeContext.java
diff --git a/org.argeo.init/src/org/argeo/api/init/RuntimeContext.java b/org.argeo.init/src/org/argeo/api/init/RuntimeContext.java
new file mode 100644 (file)
index 0000000..9f78d13
--- /dev/null
@@ -0,0 +1,10 @@
+package org.argeo.api.init;
+
+/** 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;
+}