Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ releaseLock() or lockItem.close()

### Acquire lock with timeout
You can acquire a lock via two different methods: acquireLock or tryAcquireLock. The difference between the
two methods is that tryAcquireLock will return Optional.absent() if the lock was not acquired, whereas
two methods is that tryAcquireLock will return Optional.empty() if the lock was not acquired, whereas
acquireLock will throw a LockNotGrantedException. Both methods provide optional parameters where you can specify
an additional timeout for acquiring the lock. Then they will try to acquire the lock for that amount of time
before giving up. They do this by continually polling DynamoDB according to an interval you set up. Remember that
Expand Down