Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/utils/ExclusiveExec.java @ 815:22c18083225e
Removed compiler warnings while JavaDoc generation.
gnv-artifacts/trunk@900 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 12 Apr 2010 06:59:33 +0000 |
parents | 2cea76f1112e |
children | f953c9a559d8 |
comparison
equal
deleted
inserted
replaced
814:9d427dd2a96a | 815:22c18083225e |
---|---|
2 | 2 |
3 import java.util.HashMap; | 3 import java.util.HashMap; |
4 | 4 |
5 /** | 5 /** |
6 * This class can be used to synchronize threads with a given key. To use this | 6 * This class can be used to synchronize threads with a given key. To use this |
7 * synchronization, you first need to do call {@link #acquire(String)} to | 7 * synchronization, you first need to do call {@link #acquire(java.lang.Object)} |
8 * retrieve a {@link UniqueKey}. After this, you can call the code being | 8 * to retrieve a {@link UniqueKey}. After this, you can call the code being |
9 * synchronized. After this execution, you need to call | 9 * synchronized. After this execution, you need to call |
10 * {@link #release(UniqueKey)} with your token you retrieved from {@link | 10 * {@link #release(UniqueKey)} with your token you retrieved from {@link |
11 * #acquire(String)}. A thread needs to wait for another thread if their keys | 11 * #acquire(java.lang.Object)}. A thread needs to wait for another thread if their keys |
12 * are equal. Threads with different keys don't need to wait for each other. | 12 * are equal. Threads with different keys don't need to wait for each other. |
13 * | 13 * |
14 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> | 14 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> |
15 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 15 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
16 */ | 16 */ |