Closed lcabancla closed 3 years ago
If a client already owns a lock and acquireLock() is called, the call blocks and fails.
acquireLock()
Test case:
@Test public void testAcquireLockMultipleTimes() throws InterruptedException { LockItem item = this.lockClientWithHeartbeating.acquireLock(AcquireLockOptions.builder("testKey1").build()); this.lockClientWithHeartbeating.acquireLock(AcquireLockOptions.builder("testKey1").build()); item.close(); }
If a client already owns a lock and
acquireLock()
is called, the call blocks and fails.Test case: