Package jadex.common

Interface IAutoLock

All Superinterfaces:
AutoCloseable

public interface IAutoLock extends AutoCloseable
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Unlocks the lock via the resource approach.
    void
    Manually releases the lock.
  • Method Details

    • release

      void release()
      Manually releases the lock. WARNING: Do not combine with try-with-resource to avoid duplicate unlocking.
    • close

      void close()
      Unlocks the lock via the resource approach.
      Specified by:
      close in interface AutoCloseable