| Constructor and Description |
|---|
LockConfig() |
LockConfig(LockConfig config)
Clones a
LockConfig |
LockConfig(String name)
Creates a
LockConfig with the provided name. |
LockConfig(String name,
LockConfig config)
Creates a new
LockConfig by cloning an existing config and overriding the name. |
| Modifier and Type | Method and Description |
|---|---|
LockConfig |
getAsReadOnly()
Deprecated.
this method will be removed in 4.0; it is meant for internal usage only.
|
String |
getName()
Returns the name of the lock.
|
String |
getQuorumName()
Returns the quorum name for lock operations.
|
LockConfig |
setName(String name)
Sets the name of the lock.
|
LockConfig |
setQuorumName(String quorumName)
Sets the quorum name for lock operations.
|
String |
toString() |
public LockConfig()
public LockConfig(String name)
LockConfig with the provided name.name - the nameNullPointerException - if name is nullpublic LockConfig(LockConfig config)
LockConfigconfig - the lock config to cloneNullPointerException - if config is nullpublic LockConfig(String name, LockConfig config)
LockConfig by cloning an existing config and overriding the name.name - the new nameconfig - the config.NullPointerException - if name or config is null.public LockConfig setName(String name)
name - the name of the lockLockConfigIllegalArgumentException - if name is null or an empty string.public String getName()
public String getQuorumName()
public LockConfig setQuorumName(String quorumName)
quorumName - the quorum namepublic LockConfig getAsReadOnly()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.