public class ParallelWhenAny extends java.lang.Object implements NotificationHandlingStrategy
Returns when any thread (handler) is finished.
All exceptions that happened before returning are captured in an AggregateException.
| Constructor and Description |
|---|
ParallelWhenAny(java.util.concurrent.ExecutorService threadPool) |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(java.util.List<java.lang.Runnable> runnableNotifications) |
public ParallelWhenAny(java.util.concurrent.ExecutorService threadPool)
public void handle(java.util.List<java.lang.Runnable> runnableNotifications)
handle in interface NotificationHandlingStrategy