public class SelfRenewingLease
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static int |
LEASE_RENEWAL_PERIOD |
| Constructor | Description |
|---|---|
SelfRenewingLease(org.apache.hadoop.fs.azure.StorageInterface.CloudBlobWrapper blobWrapper,
boolean throwIfPresent) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
free() |
Free the lease and stop the keep-alive thread.
|
com.microsoft.azure.storage.blob.CloudBlob |
getCloudBlob() |
|
java.lang.String |
getLeaseID() |
|
boolean |
isFreed() |
public static final int LEASE_RENEWAL_PERIOD
public SelfRenewingLease(org.apache.hadoop.fs.azure.StorageInterface.CloudBlobWrapper blobWrapper,
boolean throwIfPresent)
throws com.microsoft.azure.storage.StorageException
com.microsoft.azure.storage.StorageExceptionpublic void free()
throws com.microsoft.azure.storage.StorageException
com.microsoft.azure.storage.StorageException - Thrown when fail to free the lease.public boolean isFreed()
public java.lang.String getLeaseID()
public com.microsoft.azure.storage.blob.CloudBlob getCloudBlob()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.