Class TracePrintStream.LockAccess
- java.lang.Object
-
- de.christofreichardt.diagnosis.io.TracePrintStream.LockAccess
-
- Enclosing class:
- TracePrintStream
public class TracePrintStream.LockAccess extends Object
Helper class for controlled access to theTracePrintStream.lockby classes outside the inheritance hierarchy and outside thede.christofreichardt.diagnosis.iopackage.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReentrantLockgetLock()Returns theTracePrintStream.lock.voidsetLock(ReentrantLock lock)Sets theTracePrintStream.lock.
-
-
-
Method Detail
-
getLock
public ReentrantLock getLock()
Returns theTracePrintStream.lock.- Returns:
- the
TracePrintStream.lock.
-
setLock
public void setLock(ReentrantLock lock)
Sets theTracePrintStream.lock.- Parameters:
lock- thelockto set
-
-