public class ClusteringServiceUtil extends Object
Constructor and Description |
---|
ClusteringServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isLocked(String strContext)
Check if the lock is applied for the given context
|
static boolean |
releaseLock(String strContext)
Unlok the given context
|
static boolean |
setLock(String strContext)
Set a lock for the given context with default try with 1 second
|
static boolean |
setLock(String strContext,
long lSeconds)
Set lock with given timeout value for the given context
|
public static boolean isLocked(String strContext)
strContext
- public static boolean setLock(String strContext)
strContext
- public static boolean setLock(String strContext, long lSeconds)
strContext
- lSeconds
- public static boolean releaseLock(String strContext)
strContext
- Copyright © 2018 WSO2. All rights reserved.