1 |
| package org.jboss.cache.lock; |
2 |
| |
3 |
| import java.util.Date; |
4 |
| import java.util.concurrent.TimeUnit; |
5 |
| import java.util.concurrent.locks.Condition; |
6 |
| import java.util.concurrent.locks.Lock; |
7 |
| |
8 |
| class NullLock implements Lock, Condition { |
9 |
| |
10 |
0
| public void lock()
|
11 |
| { |
12 |
| } |
13 |
| |
14 |
0
| public void lockInterruptibly() throws InterruptedException
|
15 |
| { |
16 |
| } |
17 |
| |
18 |
0
| public Condition newCondition()
|
19 |
| { |
20 |
0
| return this;
|
21 |
| } |
22 |
| |
23 |
0
| public boolean tryLock()
|
24 |
| { |
25 |
0
| return true;
|
26 |
| } |
27 |
| |
28 |
93
| public boolean tryLock(long arg0, TimeUnit arg1) throws InterruptedException
|
29 |
| { |
30 |
93
| return true;
|
31 |
| } |
32 |
| |
33 |
88
| public void unlock()
|
34 |
| { |
35 |
| } |
36 |
| |
37 |
0
| public void await() throws InterruptedException
|
38 |
| { |
39 |
| } |
40 |
| |
41 |
0
| public boolean await(long arg0, TimeUnit arg1) throws InterruptedException
|
42 |
| { |
43 |
0
| return true;
|
44 |
| } |
45 |
| |
46 |
0
| public long awaitNanos(long arg0) throws InterruptedException
|
47 |
| { |
48 |
0
| return arg0;
|
49 |
| } |
50 |
| |
51 |
0
| public void awaitUninterruptibly()
|
52 |
| { |
53 |
| } |
54 |
| |
55 |
0
| public boolean awaitUntil(Date arg0) throws InterruptedException
|
56 |
| { |
57 |
0
| return true;
|
58 |
| } |
59 |
| |
60 |
0
| public void signal()
|
61 |
| { |
62 |
| } |
63 |
| |
64 |
0
| public void signalAll()
|
65 |
| { |
66 |
| } |
67 |
| } |