| com.tc.object.lockmanager.api.ClientLockManager
All known Subclasses: com.tc.object.lockmanager.impl.ClientLockManagerImpl, com.tc.object.lockmanager.api.TestLockManager,
ClientLockManager | public interface ClientLockManager (Code) | | Simple lock manager for the client
author: steve |
Method Summary | |
public Collection | addAllHeldLocksTo(Collection c) Adds all held locks to the given collection and returns that collection. | public Collection | addAllPendingLockRequestsTo(Collection c) Causes all pending lock requests to be added to the collection. | public Collection | addAllPendingTryLockRequestsTo(Collection c) | public Collection | addAllWaitersTo(Collection c) Adds all lock waits to the given collection and returns that collection. | public void | awardLock(SessionID sessionID, LockID id, ThreadID threadID, int type) | public void | cannotAwardLock(SessionID sessionID, LockID id, ThreadID threadID, int type) | public void | disableStat(LockID lockID) | public void | enableStat(LockID lockID, int lockStackTraceDepth, int lockStatCollectFrequency) | public boolean | isLocked(LockID lockID, ThreadID threadID, int lockLevel) | public boolean | isStarting() | public int | localHeldCount(LockID lockID, int lockLevel, ThreadID threadID) | public void | lock(LockID id, ThreadID threadID, int type) | public LockID | lockIDFor(String id) | public void | notified(LockID lockID, ThreadID threadID) Makes the lock wait for the given lock and thread a pending request. | public Notify | notify(LockID lockID, ThreadID threadID, boolean all) Returns true if this notification should be send to the server for handling. | public void | pause() | public void | queryLockCommit(ThreadID threadID, GlobalLockInfo globalLockInfo) | public int | queueLength(LockID lockID, ThreadID threadID) | public void | recall(LockID lockID, ThreadID threadID, int level) | public void | runGC() | public void | starting() | public boolean | tryLock(LockID id, ThreadID threadID, WaitInvocation timeout, int type) | public void | unlock(LockID id, ThreadID threadID) | public void | unpause() | public void | wait(LockID lockID, ThreadID threadID, WaitInvocation call, Object waitObject, WaitListener listener) | public int | waitLength(LockID lockID, ThreadID threadID) | public void | waitTimedOut(LockID lockID, ThreadID threadID) |
addAllHeldLocksTo | public Collection addAllHeldLocksTo(Collection c)(Code) | | Adds all held locks to the given collection and returns that collection.
|
addAllPendingLockRequestsTo | public Collection addAllPendingLockRequestsTo(Collection c)(Code) | | Causes all pending lock requests to be added to the collection.
|
addAllWaitersTo | public Collection addAllWaitersTo(Collection c)(Code) | | Adds all lock waits to the given collection and returns that collection.
Parameters: c - |
enableStat | public void enableStat(LockID lockID, int lockStackTraceDepth, int lockStatCollectFrequency)(Code) | | |
isStarting | public boolean isStarting()(Code) | | |
notified | public void notified(LockID lockID, ThreadID threadID)(Code) | | Makes the lock wait for the given lock and thread a pending request.
|
notify | public Notify notify(LockID lockID, ThreadID threadID, boolean all)(Code) | | Returns true if this notification should be send to the server for handling. This nofication is not needed to be
sent to the server if all is false and we have notified 1 waiter locally.
|
pause | public void pause()(Code) | | |
recall | public void recall(LockID lockID, ThreadID threadID, int level)(Code) | | Recalls a greedy Lock that was awarded earlier
|
runGC | public void runGC()(Code) | | |
starting | public void starting()(Code) | | |
unlock | public void unlock(LockID id, ThreadID threadID)(Code) | | releases the lock so that others can have at it
Parameters: obj - |
unpause | public void unpause()(Code) | | |
|
|