public class OwnableReentrantLock extends Object
Constructor and Description |
---|
OwnableReentrantLock()
Creates a new lock instance.
|
Modifier and Type | Method and Description |
---|---|
void |
lock(Object owner) |
String |
toString()
Returns a string identifying this lock, as well as its lock state.
|
boolean |
tryLock(long timeValue,
TimeUnit timeUnit,
Object owner) |
void |
unlock(Object owner) |
public void lock(Object owner)
public void unlock(Object owner)
public String toString()
Copyright © 2018 JBoss by Red Hat. All rights reserved.