01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.objectserver.lockmanager.impl;
05:
06: import com.tc.object.lockmanager.api.LockID;
07: import com.tc.object.lockmanager.api.ServerThreadID;
08: import com.tc.objectserver.lockmanager.api.DeadlockChain;
09:
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: }
|