Package org.nuxeo.ecm.core.work
Class WorkManagerImpl.WorkCompletionSynchronizer
- java.lang.Object
-
- org.nuxeo.ecm.core.work.WorkManagerImpl.WorkCompletionSynchronizer
-
- Enclosing class:
- WorkManagerImpl
protected static class WorkManagerImpl.WorkCompletionSynchronizer extends Object
Simple synchronizer to wake up when an in-JVM work is completed. Does not wake up on work completion from another node in cluster mode.
-
-
Field Summary
Fields Modifier and Type Field Description protected Condition
condition
protected ReentrantLock
lock
-
Constructor Summary
Constructors Modifier Constructor Description protected
WorkCompletionSynchronizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
signalCompletedWork()
protected boolean
waitForCompletedWork(long timeMs)
-
-
-
Field Detail
-
lock
protected final ReentrantLock lock
-
condition
protected final Condition condition
-
-
Method Detail
-
waitForCompletedWork
protected boolean waitForCompletedWork(long timeMs) throws InterruptedException
- Throws:
InterruptedException
-
signalCompletedWork
protected void signalCompletedWork()
-
-