Class LockDAO

  • All Implemented Interfaces:
    ILockDAO

    public final class LockDAO
    extends java.lang.Object
    implements ILockDAO
    • Constructor Summary

      Constructors 
      Constructor Description
      LockDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean acquire​(Lock lock, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      acquire a lock
      void closeAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Release all
      boolean refresh​(Lock lock, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      refresh expired date for a lock
      void release​(Lock lock, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      release a lock
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LockDAO

        public LockDAO()
    • Method Detail

      • acquire

        public boolean acquire​(Lock lock,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: ILockDAO
        acquire a lock
        Specified by:
        acquire in interface ILockDAO
        Returns:
        true if the lock is acquire, false if not
      • release

        public void release​(Lock lock,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: ILockDAO
        release a lock
        Specified by:
        release in interface ILockDAO
      • refresh

        public boolean refresh​(Lock lock,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: ILockDAO
        refresh expired date for a lock
        Specified by:
        refresh in interface ILockDAO
        Returns:
        return true if the lock is extended, false if the lock was been lost
      • closeAll

        public void closeAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: ILockDAO
        Release all
        Specified by:
        closeAll in interface ILockDAO