Interface TryLock
public interface TryLock
Implements a subset of lock with only trylock/unlock.
- 
Method Summary
- 
Method Details- 
tryLockboolean tryLock()Tries to get a lock.- Returns:
- trueif the lock was acquired and- falseotherwise
 
- 
unlockvoid unlock()Unlock.
- 
create
 
-