Package org.jbpm.test.listener.process
Class DefaultCountDownProcessEventListener
- java.lang.Object
-
- org.kie.api.event.process.DefaultProcessEventListener
-
- org.jbpm.test.listener.process.DefaultCountDownProcessEventListener
-
- All Implemented Interfaces:
EventListener
,org.kie.api.event.process.ProcessEventListener
- Direct Known Subclasses:
NodeCountDownProcessEventListener
,SLAViolationCountDownProcessEventListener
public class DefaultCountDownProcessEventListener extends org.kie.api.event.process.DefaultProcessEventListener
-
-
Field Summary
Fields Modifier and Type Field Description protected CountDownLatch
latch
protected int
threads
-
Constructor Summary
Constructors Constructor Description DefaultCountDownProcessEventListener()
DefaultCountDownProcessEventListener(int threads)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
count()
protected void
countDown()
void
reset()
void
reset(int threads)
void
waitTillCompleted()
void
waitTillCompleted(long timeOut)
-
Methods inherited from class org.kie.api.event.process.DefaultProcessEventListener
afterNodeLeft, afterNodeTriggered, afterProcessCompleted, afterProcessStarted, afterVariableChanged, beforeNodeLeft, beforeNodeTriggered, beforeProcessCompleted, beforeProcessStarted, beforeVariableChanged
-
-
-
-
Field Detail
-
latch
protected CountDownLatch latch
-
threads
protected int threads
-
-