public class SelfRenewingLease
extends Object
An Azure blob lease that automatically renews itself indefinitely
using a background thread. Use it to synchronize distributed processes,
or 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.
Attempting to get a lease on a non-existent blob throws StorageException.
Call free() to release the Lease.
You can use this Lease like a distributed lock. If the holder process
dies, the lease will time out since it won't be renewed.