org.apache.openejb.core.stateful
Interface LockFactory.StatefulLock

All Known Implementing Classes:
DefaultLockFactory.DefaultLock
Enclosing interface:
LockFactory

public static interface LockFactory.StatefulLock


Method Summary
 boolean isHeldByCurrentThread()
           
 void lock()
           
 boolean tryLock()
           
 boolean tryLock(long time, TimeUnit unit)
           
 void unlock()
           
 

Method Detail

lock

void lock()

unlock

void unlock()

isHeldByCurrentThread

boolean isHeldByCurrentThread()

tryLock

boolean tryLock()

tryLock

boolean tryLock(long time,
                TimeUnit unit)
                throws InterruptedException
Throws:
InterruptedException


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.