Class ReentrantLockView
- java.lang.Object
-
- org.apache.ignite.spi.systemview.view.datastructures.ReentrantLockView
-
public class ReentrantLockView extends Object
IgniteLockrepresentation for aSystemView.
-
-
Field Summary
Fields Modifier and Type Field Description protected TdsData 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 booleanbroken()booleanfailoverSafe()booleanfair()intgroupId()StringgroupName()booleanhasQueuedThreads()booleanlocked()Stringname()booleanremoved()
-
-
-
Method Detail
-
locked
public boolean locked()
- Returns:
Trueif locked.- See Also:
IgniteLock.isLocked()
-
hasQueuedThreads
public boolean hasQueuedThreads()
- Returns:
Trueif there may be other threads waiting to acquire the lock.- See Also:
IgniteLock.hasQueuedThreads()
-
failoverSafe
public boolean failoverSafe()
- Returns:
Trueif this semaphore is failover safe.- See Also:
IgniteLock.isFailoverSafe()
-
fair
public boolean fair()
- Returns:
Trueif this lock is fair.- See Also:
IgniteLock.isFair()
-
broken
public boolean broken()
- Returns:
Trueif a node failed on this semaphore andfailoverSafe()flag was set tofalse,falseotherwise.- 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:
Trueis data structure removed.
-
-