org.kie.commons.io.impl.lock
Class ThreadLockServiceImpl
java.lang.Object
org.kie.commons.io.impl.lock.ThreadLockServiceImpl
- All Implemented Interfaces:
- org.kie.commons.lock.LockService
public class ThreadLockServiceImpl
- extends Object
- implements org.kie.commons.lock.LockService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
holder
protected final AtomicReference<Thread> holder
stackSize
protected final AtomicInteger stackSize
ThreadLockServiceImpl
public ThreadLockServiceImpl()
ThreadLockServiceImpl
public ThreadLockServiceImpl(int sleep)
lock
public void lock()
- Specified by:
lock in interface org.kie.commons.lock.LockService
unlock
public void unlock()
- Specified by:
unlock in interface org.kie.commons.lock.LockService
isLocked
public boolean isLocked()
- Specified by:
isLocked in interface org.kie.commons.lock.LockService
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.