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