C# Class Lucene.Net.Store.Azure.AzureLock

Implements lock semantics on AzureDirectory via a blob lease
Inheritance: Lock
显示文件 Open project: azure-contrib/AzureDirectory Class Usage Examples

Public Methods

Method Description
AzureLock ( string lockFile, AzureDirectory directory ) : System
BreakLock ( ) : void
IsLocked ( ) : bool
Obtain ( ) : bool
Release ( ) : void
Renew ( ) : void
ToString ( ) : System.String

Private Methods

Method Description
_handleWebException ( ICloudBlob blob, Microsoft.WindowsAzure.StorageClient.StorageException err ) : bool

Method Details

AzureLock() public method

public AzureLock ( string lockFile, AzureDirectory directory ) : System
lockFile string
directory AzureDirectory
return System

BreakLock() public method

public BreakLock ( ) : void
return void

IsLocked() public method

public IsLocked ( ) : bool
return bool

Obtain() public method

public Obtain ( ) : bool
return bool

Release() public method

public Release ( ) : void
return void

Renew() public method

public Renew ( ) : void
return void

ToString() public method

public ToString ( ) : System.String
return System.String