public abstract static class WorkspaceList.Lease extends Object implements Closeable
| Modifier | Constructor and Description |
|---|---|
protected |
Lease(FilePath path) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
By default, calls
release(), but should be idempotent. |
static WorkspaceList.Lease |
createDummyLease(FilePath p)
Creates a dummy
WorkspaceList.Lease object that does no-op in the release. |
static WorkspaceList.Lease |
createLinkedDummyLease(FilePath p,
WorkspaceList.Lease parent)
Creates a
WorkspaceList.Lease object that points to the specified path, but the lock
is controlled by the given parent lease object. |
abstract void |
release()
Releases this lease.
|
public abstract void release()
public void close()
release(), but should be idempotent.close in interface Closeableclose in interface AutoCloseablepublic static WorkspaceList.Lease createDummyLease(@Nonnull FilePath p)
WorkspaceList.Lease object that does no-op in the release.public static WorkspaceList.Lease createLinkedDummyLease(@Nonnull FilePath p, WorkspaceList.Lease parent)
WorkspaceList.Lease object that points to the specified path, but the lock
is controlled by the given parent lease object.Copyright © 2019. All rights reserved.