1 4 package com.tc.object.lockmanager.api; 5 6 7 public class QueryLockRequest { 8 private LockID lockID; 9 private ThreadID threadID; 10 private Object waitLock; 11 12 public QueryLockRequest(LockID lockID, ThreadID threadID, Object waitLock) { 13 this.lockID = lockID; 14 this.threadID = threadID; 15 this.waitLock = waitLock; 16 } 17 18 public LockID lockID() { 19 return lockID; 20 } 21 22 public ThreadID threadID() { 23 return threadID; 24 } 25 26 public Object getWaitLock() { 27 return this.waitLock; 28 } 29 30 public String toString() { 31 return getClass().getName() + "[" + lockID + ", " + threadID + "]"; 32 } 33 34 } 35 | Popular Tags |