Class SynchronizationPoint
- java.lang.Object
-
- net.timewalker.ffmq4.utils.concurrent.SynchronizationPoint
-
public class SynchronizationPoint extends Object
SynchronizationPoint
-
-
Constructor Summary
Constructors Constructor Description SynchronizationPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisReached()Test if the synchronization point was reachedvoidreach()Indicate that the synchronization point is reached, waking up threads waiting for it.voidreset()Reset the synchronization point statusvoidwaitFor()Wait for the synchronization point to be reached.
-
-
-
Method Detail
-
isReached
public boolean isReached()
Test if the synchronization point was reached
-
waitFor
public void waitFor() throws InterruptedExceptionWait for the synchronization point to be reached. Returns immediately if the sync. point is already reached.- Throws:
InterruptedException
-
reach
public void reach()
Indicate that the synchronization point is reached, waking up threads waiting for it.
-
reset
public void reset()
Reset the synchronization point status
-
-