1 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 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 |