org.lightwolf.synchronization
Class ThreadFreeLock

java.lang.Object
  extended by org.lightwolf.synchronization.ThreadFreeLock

public class ThreadFreeLock
extends Object


Constructor Summary
ThreadFreeLock()
           
 
Method Summary
 boolean isFree()
           
 boolean isMine()
           
 boolean isOwner(Flow thread)
           
 void lock()
           
 boolean tryLock()
           
 boolean tryLock(long time, TimeUnit unit)
           
 void unlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadFreeLock

public ThreadFreeLock()
Method Detail

lock

public void lock()

tryLock

public boolean tryLock()

tryLock

public boolean tryLock(long time,
                       TimeUnit unit)

unlock

public void unlock()

isMine

public boolean isMine()

isOwner

public boolean isOwner(Flow thread)

isFree

public boolean isFree()