diff artifacts/src/main/java/de/intevation/artifacts/CallContext.java @ 330:3168af23aec5

Added a CallContext.isInBackground() method to determine if an Artifact or a Collection has started a background thread and is currently locked. artifacts/trunk@2666 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 07 Sep 2011 13:51:02 +0000
parents eafe59ecfb7e
children 089c6f7794b5
line wrap: on
line diff
--- a/artifacts/src/main/java/de/intevation/artifacts/CallContext.java	Thu Aug 25 14:30:59 2011 +0000
+++ b/artifacts/src/main/java/de/intevation/artifacts/CallContext.java	Wed Sep 07 13:51:02 2011 +0000
@@ -65,6 +65,12 @@
     void afterBackground(int action);
 
     /**
+     * Returns true, if the object forked a background thread and has not
+     * finished it yet.
+     */
+    boolean isInBackground();
+
+    /**
      * Access to the global context of the runtime system.
      * @return The global context.
      */

http://dive4elements.wald.intevation.org