public class LockInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
is_trylock |
protected boolean |
lock_interruptibly |
protected java.lang.String |
name |
protected java.util.concurrent.TimeUnit |
time_unit |
protected long |
timeout |
protected boolean |
use_timeout |
Constructor and Description |
---|
LockInfo(java.lang.String name,
boolean is_trylock,
boolean lock_interruptibly,
boolean use_timeout,
long timeout,
java.util.concurrent.TimeUnit time_unit) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
long |
getTimeout() |
java.util.concurrent.TimeUnit |
getTimeUnit() |
boolean |
isLockInterruptibly() |
boolean |
isTrylock() |
boolean |
isUseTimeout() |
java.lang.String |
toString() |
protected final java.lang.String name
protected final boolean is_trylock
protected final boolean lock_interruptibly
protected final boolean use_timeout
protected final long timeout
protected final java.util.concurrent.TimeUnit time_unit
public LockInfo(java.lang.String name, boolean is_trylock, boolean lock_interruptibly, boolean use_timeout, long timeout, java.util.concurrent.TimeUnit time_unit)
public boolean isTrylock()
public boolean isLockInterruptibly()
public boolean isUseTimeout()
public java.lang.String getName()
public long getTimeout()
public java.util.concurrent.TimeUnit getTimeUnit()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 1998-2020 Red Hat. All Rights Reserved.