@Public public interface Lock extends AutoCloseable
Modifier and Type | Interface and Description |
---|---|
static class |
Lock.CatalogLockImpl
A
Lock to wrap CatalogLock . |
static class |
Lock.EmptyLock
An empty lock.
|
Modifier and Type | Method and Description |
---|---|
static Lock |
empty() |
static Lock |
fromCatalog(CatalogLock lock,
Identifier tablePath) |
<T> T |
runWithLock(Callable<T> callable)
Run with lock.
|
close
<T> T runWithLock(Callable<T> callable) throws Exception
Exception
static Lock empty()
static Lock fromCatalog(CatalogLock lock, Identifier tablePath)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.