public class FencedLockConfig extends Object
FencedLock
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LOCK_ACQUIRE_LIMIT
The default reentrant lock acquire limit of
FencedLock . |
Constructor and Description |
---|
FencedLockConfig() |
FencedLockConfig(String name) |
FencedLockConfig(String name,
int lockAcquireLimit) |
Modifier and Type | Method and Description |
---|---|
FencedLockConfig |
disableReentrancy()
Disable reentrancy.
|
FencedLockConfig |
enableReentrancy()
Enables reentrancy.
|
int |
getLockAcquireLimit()
Returns the maximum number of lock acquires a lock holder can perform.
|
String |
getName()
Returns the name of FencedLock
|
FencedLockConfig |
setLockAcquireLimit(int lockAcquireLimit)
Sets the number of lock acquires a lock holder can perform.
|
FencedLockConfig |
setName(String name)
Sets the name of FencedLock
|
String |
toString() |
public static final int DEFAULT_LOCK_ACQUIRE_LIMIT
FencedLock
.
0 means there is no upper bound for number of reentrant lock acquires.public FencedLockConfig()
public FencedLockConfig(String name)
public FencedLockConfig(String name, int lockAcquireLimit)
public String getName()
public FencedLockConfig setName(String name)
public int getLockAcquireLimit()
public FencedLockConfig setLockAcquireLimit(int lockAcquireLimit)
public FencedLockConfig disableReentrancy()
public FencedLockConfig enableReentrancy()
Copyright © 2024 Hazelcast, Inc.. All rights reserved.