KickJava   Java API By Example, From Geeks To Geeks.

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


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 import com.tc.object.tx.WaitInvocation;
7
8 import java.util.Collection JavaDoc;
9
10 /**
11  * Representation of the remote lock manager
12  *
13  * @author steve
14  */

15 public interface RemoteLockManager {
16   public void flush(LockID lockID);
17   
18   public void queryLock(LockID lockID, ThreadID threadID);
19   
20   public void interrruptWait(LockID lockID, ThreadID threadID);
21   
22   public void requestLock(LockID lockID, ThreadID threadID, int lockType);
23   
24   public void tryRequestLock(LockID lockID, ThreadID threadID, int lockType);
25
26   public void releaseLock(LockID lockID, ThreadID threadID);
27   
28   public void releaseLockWait(LockID lockID, ThreadID threadID, WaitInvocation call);
29
30   public void recallCommit(LockID lockID, Collection JavaDoc lockContext, Collection JavaDoc waitContext, Collection JavaDoc pendingRequests);
31
32   public boolean isTransactionsForLockFlushed(LockID lockID, LockFlushCallback callback);
33 }
Popular Tags