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