Class LockResult


  • public class LockResult
    extends Object
    • Constructor Detail

      • LockResult

        public LockResult()
    • Method Detail

      • createLockSuccess

        public static LockResult createLockSuccess​(String nameLock,
                                                   String idLock,
                                                   Timestamp expiredDate)
        Create a LockResult
        Parameters:
        nameLock - the name of the lock
        idLock - the unique identifier of the current lock
        expiredDate - the expired date of the lock
        Returns:
        LockResult
      • refreshLockSuccess

        public static LockResult refreshLockSuccess​(LockResult oldLock,
                                                    Timestamp newExpiredDate)
        refresh a LockResult
        Parameters:
        oldLock - the old lockResult
        newExpiredDate - the new expiredDate
        Returns:
        LockResult
      • getNameLock

        public String getNameLock()
        The name of the lock
        Returns:
        nameLock
      • getExpiredDate

        public Timestamp getExpiredDate()
        The expired date of the Lock
        Returns:
        expiredDate
      • getIdLock

        public String getIdLock()
        The unique identifier of the lock
        Returns:
        idLock