Package org.springframework.data.util
Interface ReadWriteLock
public interface ReadWriteLock
A 
ReadWriteLock maintains a pair of associated locks, one for read-only operations and one for
 writing. The read lock may be held simultaneously by multiple reader threads, so long as there are
 no writers. The write lock is exclusive.- Since:
- 3.2
- Author:
- Mark Paluch
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionstatic ReadWriteLockof(ReadWriteLock delegate) Create a newReadWriteLockadapter for the givendelegate.readLock()Returns the lock used for reading.Returns the lock used for reading.
- 
Method Details- 
ofCreate a newReadWriteLockadapter for the givendelegate.- Parameters:
- delegate- must not be null.
- Returns:
- a new ReadWriteLockadapter.
 
- 
readLockLock readLock()Returns the lock used for reading.- Returns:
- the lock used for reading
- See Also:
 
- 
writeLockLock writeLock()Returns the lock used for reading.- Returns:
- the lock used for writing.
- See Also:
 
 
-