org.terracotta.toolkit.concurrent.locks
Interface ToolkitReadWriteLock

All Superinterfaces:
ReadWriteLock, ToolkitObject

public interface ToolkitReadWriteLock
extends ReadWriteLock, ToolkitObject

Provides a pair of Read and Write lock.


Method Summary
 ToolkitLock readLock()
          

ToolkitObject.getName() on the returned lock will return null

 ToolkitLock writeLock()
          

ToolkitObject.getName() on the returned lock will return null

 
Methods inherited from interface org.terracotta.toolkit.object.ToolkitObject
getName
 

Method Detail

readLock

ToolkitLock readLock()

ToolkitObject.getName() on the returned lock will return null

Specified by:
readLock in interface ReadWriteLock
Returns:
the ToolkitLock used for reading.

writeLock

ToolkitLock writeLock()

ToolkitObject.getName() on the returned lock will return null

Specified by:
writeLock in interface ReadWriteLock
Returns:
the ToolkitLock used for writing.


Copyright © 2014 Terracotta, Inc.. All Rights Reserved.