org.apache.openejb.core.stateful
Class DefaultLockFactory.DefaultLock
java.lang.Object
org.apache.openejb.core.stateful.DefaultLockFactory.DefaultLock
- All Implemented Interfaces:
- LockFactory.StatefulLock
- Enclosing class:
- DefaultLockFactory
public static class DefaultLockFactory.DefaultLock
- extends Object
- implements LockFactory.StatefulLock
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLockFactory.DefaultLock
public DefaultLockFactory.DefaultLock()
lock
public void lock()
- Specified by:
lock in interface LockFactory.StatefulLock
unlock
public void unlock()
- Specified by:
unlock in interface LockFactory.StatefulLock
isHeldByCurrentThread
public boolean isHeldByCurrentThread()
- Specified by:
isHeldByCurrentThread in interface LockFactory.StatefulLock
tryLock
public boolean tryLock()
- Specified by:
tryLock in interface LockFactory.StatefulLock
tryLock
public boolean tryLock(long time,
TimeUnit unit)
throws InterruptedException
- Specified by:
tryLock in interface LockFactory.StatefulLock
- Throws:
InterruptedException
Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.