Class AwsRepositoryLock
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.aws.AwsRepositoryLock
-
- All Implemented Interfaces:
RepositoryLock
public class AwsRepositoryLock extends Object implements RepositoryLock
-
-
Constructor Summary
Constructors Constructor Description AwsRepositoryLock(DynamoDBClient dynamoDBClient, String lockName)
AwsRepositoryLock(DynamoDBClient dynamoDBClient, String lockName, int timeoutSec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsRepositoryLock
lock()
void
unlock()
Unlocks the repository, so that it can be used by another SegmentNodeStore.
-
-
-
Constructor Detail
-
AwsRepositoryLock
public AwsRepositoryLock(DynamoDBClient dynamoDBClient, String lockName)
-
AwsRepositoryLock
public AwsRepositoryLock(DynamoDBClient dynamoDBClient, String lockName, int timeoutSec)
-
-
Method Detail
-
lock
public AwsRepositoryLock lock() throws IOException
- Throws:
IOException
-
unlock
public void unlock()
Description copied from interface:RepositoryLock
Unlocks the repository, so that it can be used by another SegmentNodeStore.- Specified by:
unlock
in interfaceRepositoryLock
-
-