|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.concurrent.locks.AbstractOwnableSynchronizer
public abstract class AbstractOwnableSynchronizer
A synchronizer that may be exclusively owned by a thread. This class provides a basis for creating locks and related synchronizers that may entail a notion of ownership. The AbstractOwnableSynchronizer class itself does not manage or use this information. However, subclasses and tools may use appropriately maintained values to help control and monitor access and provide diagnostics.
Constructor Summary | |
---|---|
protected |
AbstractOwnableSynchronizer()
Empty constructor for use by subclasses. |
Method Summary | |
---|---|
protected Thread |
getExclusiveOwnerThread()
Returns the thread last set by setExclusiveOwnerThread, or null if never set. |
protected void |
setExclusiveOwnerThread(Thread t)
Sets the thread that currently owns exclusive access. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractOwnableSynchronizer()
Method Detail |
---|
protected final void setExclusiveOwnerThread(Thread t)
protected final Thread getExclusiveOwnerThread()
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle and/or its affiliates. All rights reserved.