Interface TryLock
public interface TryLock
Implements a subset of lock with only trylock/unlock.
-
Method Summary
-
Method Details
-
tryLock
boolean tryLock()Tries to get a lock.- Returns:
true
if the lock was acquired andfalse
otherwise
-
unlock
void unlock()Unlock. -
create
-