public class WeakLockManager extends java.lang.Object implements JPropertiesListener
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
REVISION  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
checkLockMember(Data data,
               Member mbr)
Returns true if the given data can be locked by the given member. 
 | 
static WeakLockManager | 
getInstance()  | 
java.util.Date | 
getLockDate(Data data)
Returns the date the given data has been locked. 
 | 
Member | 
getLockMember(Data data)
Returns the member who has locked the given data. 
 | 
long | 
getLockTimeout()
Returns the lock timeout (in millis). 
 | 
boolean | 
isLocked(Data data)
Returns true if the given data is locked. 
 | 
boolean | 
isLockedBy(Data data,
          Member mbr)
Returns true if the given data is locked by the given member. 
 | 
void | 
lock(Data data,
    Member mbr)
Locks the given data for the given member. 
 | 
void | 
propertiesChange(JProperties properties)
Invoked after properties have been modified in JCMS and save on disk. 
 | 
void | 
setLockTimeout(long lockTimeout)
Sets the lock timeout (in millis) 
 | 
void | 
unlock(Data data)
Unlocks the given data 
 | 
void | 
unlock(Data data,
      Member mbr)
Unlocks the given data for the given member. 
 | 
public static final java.lang.String REVISION
public static WeakLockManager getInstance()
public void lock(Data data, Member mbr)
data - the datambr - the mbmerpublic void unlock(Data data, Member mbr)
data - the datambr - the memberpublic void unlock(Data data)
data - the datapublic Member getLockMember(Data data)
data - the datapublic java.util.Date getLockDate(Data data)
data - the datapublic boolean isLocked(Data data)
data - the datapublic boolean isLockedBy(Data data, Member mbr)
data - the datambr - the memberpublic boolean checkLockMember(Data data, Member mbr)
data - the datambr - the memberpublic long getLockTimeout()
public void setLockTimeout(long lockTimeout)
lockTimeout - public void propertiesChange(JProperties properties)
JPropertiesListenerYou cannot alter the value received in parameters.
propertiesChange in interface JPropertiesListenerproperties - the properties which have been modified (may not contain all JCMS properties)Copyright © 2001-2018 Jalios SA. All Rights Reserved.