public final class AbfsLease
extends Object
AbfsLease manages an Azure blob lease. It acquires an infinite lease on instantiation and
releases the lease when free() is called. Use it to prevent writes to the blob by other
processes that don't have the lease.
Creating a new Lease object blocks the caller until the Azure blob lease is acquired. It will
retry a fixed number of times before failing if there is a problem acquiring the lease.
Call free() to release the Lease. If the holder process dies, AzureBlobFileSystem breakLease
will need to be called before another client will be able to write to the file.