All Known Implementing Classes:
DistributedLocker, ExecFileLock, ExecLock, TicketLocker, ZooKeeperLocker

public interface Locker
This interface define an interface for the global execution locker.
Since:
1.1
Author:
Laurent Jourdren
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Wait the token and then lock the resource.
    void
    Unlock the resource.
  • Method Details

    • lock

      void lock() throws IOException
      Wait the token and then lock the resource.
      Throws:
      IOException - if an error occurs while locking the resource
    • unlock

      void unlock() throws IOException
      Unlock the resource.
      Throws:
      IOException - if an error occurs while unlocking the resource