KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > lockmanager > impl > DeadlockChainImpl


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.objectserver.lockmanager.impl;
5
6 import com.tc.object.lockmanager.api.LockID;
7 import com.tc.object.lockmanager.api.ServerThreadID;
8 import com.tc.objectserver.lockmanager.api.DeadlockChain;
9
10 /**
11  * A portion of a deadlock chain
12  */

13 class DeadlockChainImpl implements DeadlockChain {
14
15   private final ServerThreadID waiter;
16   private DeadlockChain next;
17   private final LockID waitingOn;
18
19   public DeadlockChainImpl(ServerThreadID threadID, LockID waitingOn) {
20     this.waiter = threadID;
21     this.waitingOn = waitingOn;
22   }
23
24   public ServerThreadID getWaiter() {
25     return this.waiter;
26   }
27
28   public DeadlockChain getNextLink() {
29     return this.next;
30   }
31
32   void setNextLink(DeadlockChain nextLink) {
33     this.next = nextLink;
34   }
35
36   public LockID getWaitingOn() {
37     return this.waitingOn;
38   }
39
40 }
41
Popular Tags