Class ReentrantLockView
- java.lang.Object
-
- org.apache.ignite.spi.systemview.view.datastructures.ReentrantLockView
-
public class ReentrantLockView extends Object
IgniteLock
representation for aSystemView
.
-
-
Field Summary
Fields Modifier and Type Field Description protected T
ds
Data structure instance.
-
Constructor Summary
Constructors Constructor Description ReentrantLockView(org.apache.ignite.internal.processors.datastructures.GridCacheRemovable ds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
broken()
boolean
failoverSafe()
boolean
fair()
int
groupId()
String
groupName()
boolean
hasQueuedThreads()
boolean
locked()
String
name()
boolean
removed()
-
-
-
Method Detail
-
locked
public boolean locked()
- Returns:
True
if locked.- See Also:
IgniteLock.isLocked()
-
hasQueuedThreads
public boolean hasQueuedThreads()
- Returns:
True
if there may be other threads waiting to acquire the lock.- See Also:
IgniteLock.hasQueuedThreads()
-
failoverSafe
public boolean failoverSafe()
- Returns:
True
if this semaphore is failover safe.- See Also:
IgniteLock.isFailoverSafe()
-
fair
public boolean fair()
- Returns:
True
if this lock is fair.- See Also:
IgniteLock.isFair()
-
broken
public boolean broken()
- Returns:
True
if a node failed on this semaphore andfailoverSafe()
flag was set tofalse
,false
otherwise.- See Also:
IgniteLock.isBroken()
-
name
public String name()
- Returns:
- Name.
-
groupName
public String groupName()
- Returns:
- Group name.
-
groupId
public int groupId()
- Returns:
- Group id.
-
removed
public boolean removed()
- Returns:
True
is data structure removed.
-
-