public static class ItemModelTransactionTest.ThreadSync extends Object
| Constructor and Description |
|---|
ThreadSync() |
| Modifier and Type | Method and Description |
|---|---|
ItemModelTransactionTest.Gate |
createGate(String key,
int parties)
Creates a point that allows to ensure a specific number of threads have passed it.
|
ItemModelTransactionTest.Join |
createJoin(String key,
int parties)
Creates a sync point that causes a specific number of threads to pause until all of them have arrived.
|
ItemModelTransactionTest.JoinGate |
createJoinGate(String key,
int parties)
Creates a sync point which ensures that a specified number of threads arrive.
|
boolean |
destroy() |
<S extends ItemModelTransactionTest.SyncPoint> |
get(String key) |
void |
registerThread(Thread t)
Registers a thread to allow orderly shutdown of testing threads via
destroy(). |
public void registerThread(Thread t)
destroy().public <S extends ItemModelTransactionTest.SyncPoint> S get(String key)
public boolean destroy()
public ItemModelTransactionTest.Gate createGate(String key, int parties)
public ItemModelTransactionTest.Join createJoin(String key, int parties)
public ItemModelTransactionTest.JoinGate createJoinGate(String key, int parties)
ItemModelTransactionTest.JoinGate.waitForAndReleaseAll(long, TimeUnit).
This point may be used several times.Copyright © 2017 SAP SE. All Rights Reserved.