public class Synchroniser extends Object implements ThreadingPolicy
Constructor and Description |
---|
Synchroniser() |
Modifier and Type | Method and Description |
---|---|
Invokable |
synchroniseAccessTo(Invokable mockObject) |
void |
waitUntil(StatePredicate p)
Waits for a StatePredicate to become active.
|
void |
waitUntil(StatePredicate p,
long timeoutMs)
Waits up to a timeout for a StatePredicate to become active.
|
public void waitUntil(StatePredicate p) throws InterruptedException
p
- the StatePredicate to wait forInterruptedException
public void waitUntil(StatePredicate p, long timeoutMs) throws InterruptedException
p
- the StatePredicate to wait fortimeoutMs
- the timeout in millisecondsInterruptedException
public Invokable synchroniseAccessTo(Invokable mockObject)
synchroniseAccessTo
in interface ThreadingPolicy
Copyright © 2003–2021 jMock. All rights reserved.