public interface ClusterLock
Modifier and Type | Method and Description |
---|---|
void |
init(DataAccessManager dataAccessManager,
String clusterLockTableStatement)
Initializes the Node Group Lock Object.
|
void |
lock(String lockName)
Creates a lock by the given name
|
void |
unlock(String lockName)
Unlocks a named lock.
|
void init(DataAccessManager dataAccessManager, String clusterLockTableStatement) throws RegistryException
dataAccessManager
- the data access manager to be used to communicate with the
database.clusterLockTableStatement
- the SQL statement required create the cluster lock table.RegistryException
- if the creation of the cluster lock table failed, or if any
exceptions occur during the initialization.void lock(String lockName) throws RegistryException
lockName
- the name of the lock.RegistryException
- if an exception occurred while locking.void unlock(String lockName) throws RegistryException
lockName
- the name of the lock.RegistryException
- if an exception occurred while unlocking.Copyright © 2019 WSO2 Inc. All Rights Reserved.