DSAzure.TAzureBlobService.LeaseBlob
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: public | |
| Source: DSAzure.pas DSAzure.hpp
| |
| Unit: DSAzure | |
| Parent: TAzureBlobService | |
Delphi
function LeaseBlob(const ContainerName: String; const BlobName: String; const LeaseAction: String = 'acquire';
const LeaseId: String = ''): String;
C++
System::UnicodeString __fastcall LeaseBlob(const System::UnicodeString ContainerName, const System::UnicodeString BlobName, const System::UnicodeString LeaseAction = L"acquire", const System::UnicodeString LeaseId = System::UnicodeString());
Description
Acquires a lock on the given blob for write access.
LeaseBlob acquires a one-minute lock on the given blob, if the LeaseAction parameter has the acquire value (by default).
Other available actions for LeaseAction are:
| Value | Meaning |
|---|---|
|
acquire |
Acquires a one minute lock. |
|
renew |
Extends the lock for an additional minute. |
|
release |
Immediately releases the lock. |
|
break |
Releases the lock after the end of its minute, so that anyone can call it with no |
Note: renew and release both require a
LeaseIdto perform.
Note: After break is called, until the lock is released and a new lease is acquired, renew cannot be called on the blob.