KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > lockmanager > api > QueryLockRequest


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.object.lockmanager.api;
5
6
7 public class QueryLockRequest {
8   private LockID lockID;
9   private ThreadID threadID;
10   private Object JavaDoc waitLock;
11
12   public QueryLockRequest(LockID lockID, ThreadID threadID, Object JavaDoc 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 JavaDoc getWaitLock() {
27     return this.waitLock;
28   }
29
30   public String JavaDoc toString() {
31     return getClass().getName() + "[" + lockID + ", " + threadID + "]";
32   }
33
34 }
35
Popular Tags