ModeShape Distribution 3.0.0.Beta4

org.modeshape.jcr.value.binary
Class NamedLocks.NamedLock

java.lang.Object
  extended by org.modeshape.jcr.value.binary.NamedLocks.NamedLock
Enclosing class:
NamedLocks

protected final class NamedLocks.NamedLock
extends Object


Field Summary
protected  String name
           
protected  Lock readLock
           
protected  Lock writeLock
           
 
Constructor Summary
protected NamedLocks.NamedLock(String name)
           
 
Method Summary
protected  int decrementReferenceCount()
           
protected  void incrementReferenceCount()
           
protected  Lock lock(boolean write)
           
 String toString()
           
protected  void unlock(Lock lock)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected final String name

readLock

protected final Lock readLock

writeLock

protected final Lock writeLock
Constructor Detail

NamedLocks.NamedLock

protected NamedLocks.NamedLock(String name)
Method Detail

incrementReferenceCount

protected void incrementReferenceCount()

decrementReferenceCount

protected int decrementReferenceCount()

lock

protected Lock lock(boolean write)

unlock

protected void unlock(Lock lock)

toString

public String toString()
Overrides:
toString in class Object

ModeShape Distribution 3.0.0.Beta4

Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.