Class SemaphoreLock

java.lang.Object
com.broadleafcommerce.audit.service.SemaphoreLock

public class SemaphoreLock extends Object
Convenience wrapper for a Semaphore instance to control acquisition and release of leases.
  • Constructor Details

    • SemaphoreLock

      public SemaphoreLock(Semaphore semaphore, long timeout, int totalCount)
  • Method Details

    • get

      public boolean get()
    • isEmpty

      public boolean isEmpty()
    • release

      public void release()