Mercurial > dive4elements > framework
comparison 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 |
comparison
equal
deleted
inserted
replaced
329:666417d5781c | 330:3168af23aec5 |
---|---|
63 * @param action Same semantics as in afterCall. | 63 * @param action Same semantics as in afterCall. |
64 */ | 64 */ |
65 void afterBackground(int action); | 65 void afterBackground(int action); |
66 | 66 |
67 /** | 67 /** |
68 * Returns true, if the object forked a background thread and has not | |
69 * finished it yet. | |
70 */ | |
71 boolean isInBackground(); | |
72 | |
73 /** | |
68 * Access to the global context of the runtime system. | 74 * Access to the global context of the runtime system. |
69 * @return The global context. | 75 * @return The global context. |
70 */ | 76 */ |
71 Object globalContext(); | 77 Object globalContext(); |
72 | 78 |