Interface AdaptedSemaphoreNamedLock.AdaptedSemaphore

Enclosing class:
AdaptedSemaphoreNamedLock

Wrapper for semaphore-like stuff, that do not share common ancestor. Semaphore must be created to support Integer.MAX_VALUE permissions.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    release(int perms)
     
    boolean
    tryAcquire(int perms, long time, TimeUnit unit)