org.apache.hadoop.hbase.master
Interface TableLockManager.TableLock

Enclosing class:
TableLockManager

@InterfaceAudience.Private
public static interface TableLockManager.TableLock

A distributed lock for a table.


Method Summary
 void acquire()
          Acquire the lock, with the configured lock timeout.
 void release()
          Release the lock already held.
 

Method Detail

acquire

void acquire()
             throws IOException
Acquire the lock, with the configured lock timeout.

Throws:
LockTimeoutException - If unable to acquire a lock within a specified time period (if any)
IOException - If unrecoverable error occurs

release

void release()
             throws IOException
Release the lock already held.

Throws:
IOException - If there is an unrecoverable error releasing the lock


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.