com.atlassian.util.concurrent
Interface LockManager.ReadWrite<T>

Type Parameters:
T -
Enclosing interface:
LockManager<T>

public static interface LockManager.ReadWrite<T>

Maintains two lock managers that internally use the same map of read/write locks


Method Summary
 LockManager<T> read()
          For performing operations that require read locks
 LockManager<T> write()
          For performing operations that require write locks
 

Method Detail

read

LockManager<T> read()
For performing operations that require read locks

Returns:
a lock manager that uses read locks

write

LockManager<T> write()
For performing operations that require write locks

Returns:
a lock manager that uses write locks


Copyright © 2014 Atlassian. All Rights Reserved.