Class AzureRepositoryLock
java.lang.Object
org.apache.jackrabbit.oak.segment.azure.AzureRepositoryLock
- All Implemented Interfaces:
RepositoryLock
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAzureRepositoryLock
(com.azure.storage.blob.specialized.BlockBlobClient blockBlobClient, com.azure.storage.blob.specialized.BlobLeaseClient leaseClient, Runnable shutdownHook, WriteAccessController writeAccessController) AzureRepositoryLock
(com.azure.storage.blob.specialized.BlockBlobClient blockBlobClient, com.azure.storage.blob.specialized.BlobLeaseClient leaseClient, Runnable shutdownHook, WriteAccessController writeAccessController, int timeoutSec) -
Method Summary
-
Field Details
-
LEASE_DURATION_PROP
- See Also:
-
RENEWAL_INTERVAL_PROP
- See Also:
-
TIME_TO_WAIT_BEFORE_WRITE_BLOCK_PROP
- See Also:
-
-
Constructor Details
-
AzureRepositoryLock
public AzureRepositoryLock(com.azure.storage.blob.specialized.BlockBlobClient blockBlobClient, com.azure.storage.blob.specialized.BlobLeaseClient leaseClient, Runnable shutdownHook, WriteAccessController writeAccessController) -
AzureRepositoryLock
public AzureRepositoryLock(com.azure.storage.blob.specialized.BlockBlobClient blockBlobClient, com.azure.storage.blob.specialized.BlobLeaseClient leaseClient, Runnable shutdownHook, WriteAccessController writeAccessController, int timeoutSec)
-
-
Method Details
-
lock
- Throws:
IOException
-
unlock
Description copied from interface:RepositoryLock
Unlocks the repository, so that it can be used by another SegmentNodeStore.- Specified by:
unlock
in interfaceRepositoryLock
- Throws:
IOException
-