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