Class Lock


  • public class Lock
    extends java.lang.Object
    Lock edited resource for a editor used.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long LOCK_TIME
      Default time - 20 seconds.
    • Constructor Summary

      Constructors 
      Constructor Description
      Lock​(java.lang.String id, int userId)  
    • Field Detail

      • LOCK_TIME

        public static final long LOCK_TIME
        Default time - 20 seconds.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Lock

        public Lock​(java.lang.String id,
                    int userId)
    • Method Detail

      • getId

        public java.lang.String getId()
      • getUserId

        public int getUserId()
      • getToTime

        public long getToTime()
      • continueTime

        public void continueTime()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object