com.twitter.common.zookeeper
Interface DistributedLock

All Known Implementing Classes:
DistributedLockImpl

public interface DistributedLock

DistributedLock


Nested Class Summary
static class DistributedLock.LockingException
           
 
Method Summary
 void lock()
           
 boolean tryLock(long timeout, TimeUnit unit)
           
 void unlock()
           
 

Method Detail

lock

void lock()
          throws DistributedLock.LockingException
Throws:
DistributedLock.LockingException

tryLock

boolean tryLock(long timeout,
                TimeUnit unit)

unlock

void unlock()
            throws DistributedLock.LockingException
Throws:
DistributedLock.LockingException