public final class AbfsLease extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AbfsLease.LeaseException |
| Constructor and Description |
|---|
AbfsLease(AbfsClient client,
String path,
int acquireMaxRetries,
int acquireRetryInterval,
TracingContext tracingContext) |
AbfsLease(AbfsClient client,
String path,
TracingContext tracingContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
free()
Cancel future and free the lease.
|
int |
getAcquireRetryCount() |
String |
getLeaseID() |
TracingContext |
getTracingContext() |
boolean |
isFreed() |
public AbfsLease(AbfsClient client, String path, TracingContext tracingContext) throws AzureBlobFileSystemException
AzureBlobFileSystemException@VisibleForTesting public AbfsLease(AbfsClient client, String path, int acquireMaxRetries, int acquireRetryInterval, TracingContext tracingContext) throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic void free()
public boolean isFreed()
public String getLeaseID()
@VisibleForTesting public int getAcquireRetryCount()
@VisibleForTesting public TracingContext getTracingContext()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.