Kie Commons I/O 6.0.0.CR5

org.kie.commons.io.impl.lock
Class ThreadLockServiceImpl

java.lang.Object
  extended by 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


Field Summary
protected  AtomicReference<Thread> holder
           
protected  AtomicInteger stackSize
           
 
Constructor Summary
ThreadLockServiceImpl()
           
ThreadLockServiceImpl(int sleep)
           
 
Method Summary
 boolean isLocked()
           
 void lock()
           
 void unlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

holder

protected final AtomicReference<Thread> holder

stackSize

protected final AtomicInteger stackSize
Constructor Detail

ThreadLockServiceImpl

public ThreadLockServiceImpl()

ThreadLockServiceImpl

public ThreadLockServiceImpl(int sleep)
Method Detail

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

Kie Commons I/O 6.0.0.CR5

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.