Interface CatalogLock

  • All Superinterfaces:
    AutoCloseable, Closeable

    @Deprecated
    @Internal
    public interface CatalogLock
    extends Closeable
    Deprecated.
    This interface will be removed soon. Please see FLIP-346 for more details.
    An interface that allows source and sink to use global lock to some transaction-related things.
    • Method Detail

      • runWithLock

        <T> T runWithLock​(String database,
                          String table,
                          Callable<T> callable)
                   throws Exception
        Deprecated.
        Run with catalog lock. The caller should tell catalog the database and table name.
        Throws:
        Exception