Class AzureRepositoryLock

    • 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 interface RepositoryLock
        Throws:
        java.io.IOException