protected class Locking.ClientLock extends Object implements Lock
Modifier and Type | Field and Description |
---|---|
protected boolean |
acquired |
protected Locking.ClientCondition |
condition |
protected boolean |
denied |
protected boolean |
is_trylock |
protected String |
name |
protected Owner |
owner |
protected long |
timeout |
Constructor and Description |
---|
Locking.ClientLock(String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
_unlock(boolean force) |
protected void |
acquire(boolean throwInterrupt) |
protected boolean |
acquireTryLock(long timeout,
boolean use_timeout) |
protected void |
handleLockGrantedResponse(Owner owner,
Address sender) |
void |
lock() |
protected void |
lockDenied() |
protected void |
lockGranted() |
void |
lockInterruptibly() |
Condition |
newCondition() |
String |
toString() |
boolean |
tryLock() |
boolean |
tryLock(long time,
TimeUnit unit) |
void |
unlock() |
protected final String name
protected Owner owner
protected volatile boolean acquired
protected volatile boolean denied
protected volatile boolean is_trylock
protected long timeout
protected final Locking.ClientCondition condition
public Locking.ClientLock(String name)
public void lockInterruptibly() throws InterruptedException
lockInterruptibly
in interface Lock
InterruptedException
public boolean tryLock(long time, TimeUnit unit) throws InterruptedException
tryLock
in interface Lock
InterruptedException
public Condition newCondition()
newCondition
in interface Lock
protected void lockGranted()
protected void lockDenied()
protected void acquire(boolean throwInterrupt) throws InterruptedException
InterruptedException
protected void _unlock(boolean force)
protected boolean acquireTryLock(long timeout, boolean use_timeout) throws InterruptedException
InterruptedException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.