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.
|
@NonNull public final FilePath path
protected Lease(@NonNull FilePath path)
public abstract void release()
public void close()
release()
, but should be idempotent.close
in interface Closeable
close
in interface AutoCloseable
public 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 © 2004–2021. All rights reserved.