Class AzureRepositoryLock
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.azure.AzureRepositoryLock
-
- All Implemented Interfaces:
RepositoryLock
public class AzureRepositoryLock extends java.lang.Object implements RepositoryLock
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LEASE_DURATION_PROP
static java.lang.String
RENEWAL_INTERVAL_PROP
static java.lang.String
TIME_TO_WAIT_BEFORE_WRITE_BLOCK_PROP
-
Constructor Summary
Constructors Constructor Description AzureRepositoryLock(com.microsoft.azure.storage.blob.CloudBlockBlob blob, java.lang.Runnable shutdownHook, WriteAccessController writeAccessController)
AzureRepositoryLock(com.microsoft.azure.storage.blob.CloudBlockBlob blob, java.lang.Runnable shutdownHook, WriteAccessController writeAccessController, int timeoutSec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AzureRepositoryLock
lock()
void
unlock()
Unlocks the repository, so that it can be used by another SegmentNodeStore.
-
-
-
Field Detail
-
LEASE_DURATION_PROP
public static final java.lang.String LEASE_DURATION_PROP
- See Also:
- Constant Field Values
-
RENEWAL_INTERVAL_PROP
public static final java.lang.String RENEWAL_INTERVAL_PROP
- See Also:
- Constant Field Values
-
TIME_TO_WAIT_BEFORE_WRITE_BLOCK_PROP
public static final java.lang.String TIME_TO_WAIT_BEFORE_WRITE_BLOCK_PROP
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AzureRepositoryLock
public AzureRepositoryLock(com.microsoft.azure.storage.blob.CloudBlockBlob blob, java.lang.Runnable shutdownHook, WriteAccessController writeAccessController)
-
AzureRepositoryLock
public AzureRepositoryLock(com.microsoft.azure.storage.blob.CloudBlockBlob blob, java.lang.Runnable shutdownHook, WriteAccessController writeAccessController, int timeoutSec)
-
-
Method Detail
-
lock
public AzureRepositoryLock lock() throws java.io.IOException
- Throws:
java.io.IOException
-
unlock
public void unlock() throws java.io.IOException
Description copied from interface:RepositoryLock
Unlocks the repository, so that it can be used by another SegmentNodeStore.- Specified by:
unlock
in interfaceRepositoryLock
- Throws:
java.io.IOException
-
-