Package org.jgroups.blocks.locking
Class LockInfo
- java.lang.Object
-
- org.jgroups.blocks.locking.LockInfo
-
public class LockInfo extends java.lang.Object
- Author:
- Bela Ban
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description LockInfo(java.lang.String name, boolean is_trylock, boolean lock_interruptibly, boolean use_timeout, long timeout, java.util.concurrent.TimeUnit time_unit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
long
getTimeout()
java.util.concurrent.TimeUnit
getTimeUnit()
boolean
isLockInterruptibly()
boolean
isTrylock()
boolean
isUseTimeout()
java.lang.String
toString()
-
-
-
Field Detail
-
name
protected final java.lang.String name
-
is_trylock
protected final boolean is_trylock
-
lock_interruptibly
protected final boolean lock_interruptibly
-
use_timeout
protected final boolean use_timeout
-
timeout
protected final long timeout
-
time_unit
protected final java.util.concurrent.TimeUnit time_unit
-
-
Method Detail
-
isTrylock
public boolean isTrylock()
-
isLockInterruptibly
public boolean isLockInterruptibly()
-
isUseTimeout
public boolean isUseTimeout()
-
getName
public java.lang.String getName()
-
getTimeout
public long getTimeout()
-
getTimeUnit
public java.util.concurrent.TimeUnit getTimeUnit()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-