Class AzureRepositoryLock
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.azure.AzureRepositoryLock
-
- All Implemented Interfaces:
RepositoryLock
public class AzureRepositoryLock extends Object implements RepositoryLock
-
-
Field Summary
Fields Modifier and Type Field Description static StringLEASE_DURATION_PROPstatic StringRENEWAL_INTERVAL_PROPstatic StringTIME_TO_WAIT_BEFORE_WRITE_BLOCK_PROP
-
Constructor Summary
Constructors Constructor Description AzureRepositoryLock(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AzureRepositoryLocklock()voidunlock()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
-
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 Detail
-
lock
public AzureRepositoryLock lock() throws IOException
- Throws:
IOException
-
unlock
public void unlock() throws IOExceptionDescription copied from interface:RepositoryLockUnlocks the repository, so that it can be used by another SegmentNodeStore.- Specified by:
unlockin interfaceRepositoryLock- Throws:
IOException
-
-