Uses of Class
com.sun.sgs.impl.util.lock.Locker

Packages that use Locker
com.sun.sgs.impl.kernel Provides an implementation of the RedDwarf Server kernel. 
com.sun.sgs.impl.util.lock Provides utility classes for managing locks. 
 

Uses of Locker in com.sun.sgs.impl.kernel
 

Subclasses of Locker in com.sun.sgs.impl.kernel
static class LockingAccessCoordinator.LockerImpl
          Define a locker that records information about the transaction requesting locks, and descriptions.
 

Uses of Locker in com.sun.sgs.impl.util.lock
 

Subclasses of Locker in com.sun.sgs.impl.util.lock
 class BasicLocker<K>
          Records information about an entity that requests locks from a LockManager and that permits only a single active lock request.
 class MultiLocker<K>
          Records information about an entity that requests locks from a MultiLockManager.
 class TxnLocker<K>
          Records information about an entity that requests locks from a TxnLockManager as part of a transaction.
 

Fields in com.sun.sgs.impl.util.lock declared as Locker
(package private)  Locker<K> LockAttemptResult.conflict
          A conflicting locker, if the request was not granted, or null.
(package private)  Locker<K> LockConflict.conflictingLocker
          A locker that caused the conflict.
 

Fields in com.sun.sgs.impl.util.lock with type parameters of type Locker
(package private)  ThreadLocal<Locker<K>> LockManager.currentLockerSync
          When assertions are enabled, holds the Locker that the current thread is synchronized on, if any.
 

Methods in com.sun.sgs.impl.util.lock that return Locker
 Locker<K> LockConflict.getConflictingLocker()
          Returns a transaction that caused the conflict.
 Locker<K> LockRequest.getLocker()
          Returns the locker that requested the lock.
 

Methods in com.sun.sgs.impl.util.lock that return types with arguments of type Locker
(package private)  List<Locker<K>> Lock.release(Locker<K> locker, boolean downgrade)
          Releases the ownership of this lock by the locker.
 

Methods in com.sun.sgs.impl.util.lock with parameters of type Locker
 void MultiLockManager.downgradeLock(Locker<K> locker, K key)
          Downgrades a lock held by a locker from write to read access.
(package private)  void Lock.flushWaiter(Locker<K> locker)
          Removes a locker from the list of waiters for this lock.
(package private)  LockAttemptResult<K> Lock.lock(Locker<K> locker, boolean forWrite, boolean waiting)
          Attempts to obtain this lock.
 LockConflict<K> TxnLockManager.lock(Locker<K> locker, K key, boolean forWrite)
          Attempts to acquire a lock, waiting if needed.
 LockConflict<K> LockManager.lock(Locker<K> locker, K key, boolean forWrite)
          Attempts to acquire a lock, waiting if needed.
 LockConflict<K> MultiLockManager.lock(Locker<K> locker, K key, boolean forWrite)
          Attempts to acquire a lock, waiting if needed.
 LockConflict<K> TxnLockManager.lockNoWait(Locker<K> locker, K key, boolean forWrite)
          Attempts to acquire a lock, returning immediately.
 LockConflict<K> LockManager.lockNoWait(Locker<K> locker, K key, boolean forWrite)
          Attempts to acquire a lock, returning immediately.
 LockConflict<K> MultiLockManager.lockNoWait(Locker<K> locker, K key, boolean forWrite)
          Attempts to acquire a lock, returning immediately.
(package private)  LockConflict<K> TxnLockManager.lockNoWaitInternal(Locker<K> locker, K key, boolean forWrite)
          Attempts to acquire a lock, returning immediately.
(package private)  LockConflict<K> LockManager.lockNoWaitInternal(Locker<K> locker, K key, boolean forWrite)
          Attempts to acquire a lock, returning immediately.
(package private)  List<Locker<K>> Lock.release(Locker<K> locker, boolean downgrade)
          Releases the ownership of this lock by the locker.
 void LockManager.releaseLock(Locker<K> locker, K key)
          Releases a lock held by a locker.
(package private)  void LockManager.releaseLockInternal(Locker<K> locker, K key, boolean downgrade)
          Releases a lock, but only downgrading it if downgrade is true.
 LockConflict<K> TxnLockManager.waitForLock(Locker<K> locker)
          Waits for a previous attempt to obtain a lock that blocked.
 LockConflict<K> LockManager.waitForLock(Locker<K> locker)
          Waits for a previous attempt to obtain a lock that blocked.
 LockConflict<K> MultiLockManager.waitForLock(Locker<K> locker)
          Waits for a previous attempt to obtain a lock that blocked.
(package private)  LockConflict<K> LockManager.waitForLockInternal(Locker<K> locker)
          Waits for a previous attempt to obtain a lock that blocked.
 

Constructors in com.sun.sgs.impl.util.lock with parameters of type Locker
LockAttemptResult(LockRequest<K> request, Locker<K> conflict)
          Creates an instance of this class.
LockConflict(LockConflictType type, Locker<K> conflictingLocker)
          Creates an instance of this class.
LockRequest(Locker<K> locker, K key, boolean forWrite, boolean upgrade)
          Creates a lock request.
 


RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved