public abstract class AbstractOwnableSynchronizer
extends java.lang.Object
implements java.io.Serializable
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.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOwnableSynchronizer()
Empty constructor for use by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
protected Strand |
getExclusiveOwnerStrand()
Returns the strand last set by
setExclusiveOwnerStrand,
or null if never set. |
protected void |
setExclusiveOwnerStrand(Strand strand)
Sets the strand that currently owns exclusive access.
|
protected AbstractOwnableSynchronizer()
protected final void setExclusiveOwnerStrand(Strand strand)
null argument indicates that no strand owns access.
This method does not otherwise impose any synchronization or
volatile field accesses.strand - the owner strandprotected final Strand getExclusiveOwnerStrand()
setExclusiveOwnerStrand,
or null if never set. This method does not otherwise
impose any synchronization or volatile field accesses.