Package org.openl.rules.lock
Class LockInfo
- java.lang.Object
-
- org.openl.rules.lock.LockInfo
-
public class LockInfo extends Object
Lock description.- Author:
- Yury Molchan
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantgetLockedAt()Get date/time when the lock was set.StringgetLockedBy()Returns an identification who or what sets the lock.booleanisLocked()
-
-
-
Field Detail
-
NO_LOCK
public static final LockInfo NO_LOCK
-
-
Method Detail
-
getLockedAt
public Instant getLockedAt()
Get date/time when the lock was set.- Returns:
- date when the lock was set
-
getLockedBy
public String getLockedBy()
Returns an identification who or what sets the lock. If a user cannot be determined then the empty String will be returned.
-
isLocked
public boolean isLocked()
-
-