public class Locker extends Object
try(Locker.Lock lock = locker.lock())
{
// something
}
| Modifier and Type | Class and Description |
|---|---|
static class |
Locker.Lock |
class |
Locker.UnLock |
| Constructor and Description |
|---|
Locker() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLocked() |
Locker.Lock |
lock() |
Locker.Lock |
lockIfNotHeld() |
Condition |
newCondition() |
public Locker.Lock lock()
public Locker.Lock lockIfNotHeld()
public boolean isLocked()
public Condition newCondition()
Copyright © 1995–2017 Webtide. All rights reserved.