1 package locklib;
2
3 /**
4 * Interface implemented by objects that are informed of changes in the locks
5 * currently held.
6 * @param <LockType> the type of locks
7 */
8 public interface LockManagerListener<LockType> {
9 /**
10 * A lock has been granted.
11 * @param g the granted lock
12 */
13 void locked(LockGrant<LockType> g);
14
15 /**
16 * A lock has been released.
17 * @param g the released lock
18 */
19 void unlocked(LockGrant<LockType> g);
20 }