java::util::PreferenceLock Class Reference

Inheritance diagram for java::util::PreferenceLock:

Inheritance graph
java::lang::Objectjava::lang::Interfacejava::util::ReadWriteLock
[legend]
Collaboration diagram for java::util::PreferenceLock:

Collaboration graph
java::lang::Objectjava::lang::Interfacejava::lang::ObjectRefjava::util::ReadWriteLockjava::lang::Comparable
[legend]

List of all members.


Detailed Description

A ReadWriteLock that can set the preference policy to FAIR_PREFERENCE, WRITER_PREFERENCE or READER_PREFERENCE.

Public Types

enum  PREFERENCE_MODE { FAIR_PREFERENCE = 0, WRITER_PREFERENCE, READER_PREFERENCE }

Public Member Functions

 PreferenceLock (jint policy=FAIR_PREFERENCE)
virtual Ref< Lockreader () const
 Get the read lock.
virtual Ref< Lockwriter () const
 Get the read lock.

Member Enumeration Documentation

enum java::util::PreferenceLock::PREFERENCE_MODE

Enumerator:
FAIR_PREFERENCE 
WRITER_PREFERENCE 
READER_PREFERENCE 


Constructor & Destructor Documentation

java::util::PreferenceLock::PreferenceLock ( jint  policy = FAIR_PREFERENCE  ) 


Member Function Documentation

virtual Ref<Lock> java::util::PreferenceLock::reader (  )  const [virtual]

Get the read lock.

Returns:
the read lock.

Implements java::util::ReadWriteLock.

virtual Ref<Lock> java::util::PreferenceLock::writer (  )  const [virtual]

Get the read lock.

Returns:
the read lock.

Implements java::util::ReadWriteLock.


The documentation for this class was generated from the following file:
Generated on Fri May 16 11:56:50 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3