public class AwsRepositoryLock extends java.lang.Object implements RepositoryLock
Constructor and Description |
---|
AwsRepositoryLock(DynamoDBClient dynamoDBClient,
java.lang.String lockName) |
AwsRepositoryLock(DynamoDBClient dynamoDBClient,
java.lang.String lockName,
int timeoutSec) |
Modifier and Type | Method and Description |
---|---|
AwsRepositoryLock |
lock() |
void |
unlock()
Unlocks the repository, so that it can be used by another SegmentNodeStore.
|
public AwsRepositoryLock(DynamoDBClient dynamoDBClient, java.lang.String lockName)
public AwsRepositoryLock(DynamoDBClient dynamoDBClient, java.lang.String lockName, int timeoutSec)
public AwsRepositoryLock lock() throws java.io.IOException
java.io.IOException
public void unlock()
RepositoryLock
unlock
in interface RepositoryLock
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.