Class LockResult


  • public class LockResult
    extends java.lang.Object
    • Constructor Detail

      • LockResult

        public LockResult()
    • Method Detail

      • createLockSuccess

        public static LockResult createLockSuccess​(java.lang.String nameLock,
                                                   java.lang.String idLock,
                                                   java.sql.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,
                                                    java.sql.Timestamp newExpiredDate)
        refresh a LockResult
        Parameters:
        oldLock - the old lockResult
        newExpiredDate - the new expiredDate
        Returns:
        LockResult
      • getNameLock

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

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

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