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.object.lockmanager.api;
05:
06: public class QueryLockRequest {
07: private LockID lockID;
08: private ThreadID threadID;
09: private Object waitLock;
10:
11: public QueryLockRequest(LockID lockID, ThreadID threadID,
12: 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: }
|