public class FencedLockConfig extends Object
FencedLock
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LOCK_ACQUIRE_LIMIT
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 name of the FencedLock
|
FencedLockConfig |
setLockAcquireLimit(int lockAcquireLimit)
Sets the number of lock acquires a lock holder can perform
|
FencedLockConfig |
setName(String name)
Sets name of the semaphore
|
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 © 2019 Hazelcast, Inc.. All Rights Reserved.