org.codehaus.wadi.impl
Class RankedRWLock

java.lang.Object
  extended byorg.codehaus.wadi.impl.RWLock
      extended byorg.codehaus.wadi.impl.RankedRWLock
All Implemented Interfaces:
ReadWriteLock

public class RankedRWLock
extends RWLock

A ReadWriteLock with prioritisable writer threads. The set of priority ranks is tailored to WADI.

Version:
$Revision: 1139 $
Author:
Jules Gosnell

Nested Class Summary
 
Nested classes inherited from class org.codehaus.wadi.impl.RWLock
RWLock.Lock, RWLock.ReaderLock, RWLock.Signaller, RWLock.WriterLock
 
Field Summary
static int CREATION_PRIORITY
           
static int EMIGRATION_PRIORITY
           
static int EVICTION_PRIORITY
           
static int IMMIGRATION_PRIORITY
           
static int INVALIDATION_PRIORITY
           
protected static int MAX_PRIORITY
           
static int NO_PRIORITY
           
 
Fields inherited from class org.codehaus.wadi.impl.RWLock
_listener, _log, _maxPriority, _priority, activeReaders_, activeWriter_, readerLock_, waitingReaders_, waitingWriters_, writerLock_
 
Constructor Summary
RankedRWLock()
           
 
Methods inherited from class org.codehaus.wadi.impl.RWLock
allowReader, cancelledWaitingReader, cancelledWaitingWriter, downgrade, endRead, endWrite, getPriority, notifyReadEnded, overlap, readLock, setListener, setPriority, startRead, startReadFromNewReader, startReadFromWaitingReader, startWrite, startWriteFromNewWriter, startWriteFromWaitingWriter, toString, writeLock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INVALIDATION_PRIORITY

public static final int INVALIDATION_PRIORITY
See Also:
Constant Field Values

EMIGRATION_PRIORITY

public static final int EMIGRATION_PRIORITY
See Also:
Constant Field Values

EVICTION_PRIORITY

public static final int EVICTION_PRIORITY
See Also:
Constant Field Values

IMMIGRATION_PRIORITY

public static final int IMMIGRATION_PRIORITY
See Also:
Constant Field Values

CREATION_PRIORITY

public static final int CREATION_PRIORITY
See Also:
Constant Field Values

NO_PRIORITY

public static final int NO_PRIORITY
See Also:
Constant Field Values

MAX_PRIORITY

protected static final int MAX_PRIORITY
See Also:
Constant Field Values
Constructor Detail

RankedRWLock

public RankedRWLock()


Copyright © 2004-2008 Core Developers Network Ltd.. All Rights Reserved.