Class ItemModelTransactionTest.ThreadSync
java.lang.Object
de.hybris.platform.servicelayer.tx.ItemModelTransactionTest.ThreadSync
- Enclosing class:
- ItemModelTransactionTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateGate(String key, int parties) Creates a point that allows to ensure a specific number of threads have passed it.createJoin(String key, int parties) Creates a sync point that causes a specific number of threads to pause until all of them have arrived.createJoinGate(String key, int parties) Creates a sync point which ensures that a specified number of threads arrive.booleandestroy()<S extends ItemModelTransactionTest.SyncPoint>
SvoidRegisters a thread to allow orderly shutdown of testing threads viadestroy().
-
Constructor Details
-
ThreadSync
public ThreadSync()
-
-
Method Details
-
registerThread
Registers a thread to allow orderly shutdown of testing threads viadestroy(). -
get
-
destroy
public boolean destroy() -
createGate
Creates a point that allows to ensure a specific number of threads have passed it.This sync point can only be used once!
-
createJoin
Creates a sync point that causes a specific number of threads to pause until all of them have arrived. After that they are released all at once.This sync point may be used several times.
-
createJoinGate
Creates a sync point which ensures that a specified number of threads arrive. The are held until the master callsItemModelTransactionTest.JoinGate.waitForAndReleaseAll(long, TimeUnit).This point may be used several times.
-