We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c280448 commit 872cbffCopy full SHA for 872cbff
1 file changed
affinity/src/main/java/net/openhft/affinity/lockchecker/LockChecker.java
@@ -26,6 +26,18 @@ public interface LockChecker {
26
27
boolean isLockFree(int id);
28
29
+ /**
30
+ * Obtain a lock for the given id.
31
+ */
32
+ @Deprecated(/* to be removed in x.29 */)
33
+ default boolean obtainLock(int id, String metaInfo) throws IOException {
34
+ return obtainLock(id, 0, metaInfo);
35
+ }
36
+
37
38
+ * Obtain a lock for the given id and id2. The id2 is used to distinguish between
39
+ * multiple locks for the same core
40
41
boolean obtainLock(int id, int id2, String metaInfo) throws IOException;
42
43
boolean releaseLock(int id);
0 commit comments