Skip to content

chore: ✏️ fix typos #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ public String toString() {
* required parameter, which is a specific partition key.
*
* @param partitionKey The partition key under which the lock will be acquired.
* @return a builder for an AquireLockOptions object
* @return a builder for an AcquireLockOptions object
*/
public static AcquireLockOptionsBuilder builder(final String partitionKey) {
return new AcquireLockOptionsBuilder(partitionKey);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public class AmazonDynamoDBLockClient implements Runnable, Closeable {
protected static volatile AtomicInteger lockClientId = new AtomicInteger(0);
protected static final Boolean IS_RELEASED_INDICATOR = true;
/*
* Used as a default buffer for how long extra to wait when querying DynamoDB for a lock in acquireLock (can be overriden by
* Used as a default buffer for how long extra to wait when querying DynamoDB for a lock in acquireLock (can be overridden by
* specifying a timeout when calling acquireLock)
*/
private static final long DEFAULT_BUFFER_MS = 1000;
Expand Down Expand Up @@ -761,7 +761,7 @@ private LockItem putLockItemAndStartSessionMonitor(AcquireLockOptions options, S
}

/**
* Builds an updateExpression for all fields in item map and updates the correspoding expression attribute name and
* Builds an updateExpression for all fields in item map and updates the corresponding expression attribute name and
* value maps.
* @param item Map of Name and AttributeValue to update or create
* @param expressionAttributeNames
Expand Down Expand Up @@ -1247,7 +1247,7 @@ public void run() {
/* If we want to hearbeat every 9 seconds, and it took 3 seconds to send the heartbeats, we only sleep 6 seconds */
Thread.sleep(Math.max(this.heartbeatPeriodInMilliseconds - timeElapsed, 0));
} catch (final InterruptedException e) {
logger.info("Heartbeat thread recieved interrupt, exiting run() (possibly exiting thread)", e);
logger.info("Heartbeat thread received interrupt, exiting run() (possibly exiting thread)", e);
return;
} catch (final RuntimeException x) {
logger.warn("Exception sending heartbeat", x);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class AmazonDynamoDBLockClientOptions {

/**
* A builder for setting up an AmazonDynamoDBLockClientOptions object. By default, it is setup to have a partition key name of
* "key," a lease duration of 20 seconds, and a default heartbeat period of 5 seconds. These defaults can be overriden.
* "key," a lease duration of 20 seconds, and a default heartbeat period of 5 seconds. These defaults can be overridden.
*/
public static class AmazonDynamoDBLockClientOptionsBuilder {
private DynamoDbClient dynamoDBClient;
Expand Down Expand Up @@ -198,7 +198,7 @@ public AmazonDynamoDBLockClientOptionsBuilder withHoldLockOnServiceUnavailable(f
}

/**
* Builds an AmazonDynamoDBLockClientOptions. If required parametes are
* Builds an AmazonDynamoDBLockClientOptions. If required parameters are
* not set, will throw an IllegalArgumentsException.
*
* @return Returns the AmazonDynamoDBLockClientOptions which can be
Expand Down