public class EventBroadcasterAsync extends java.lang.Object implements EventBroadcaster
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ALL_CALLS_TIME_OUT_SECONDS |
| Constructor and Description |
|---|
EventBroadcasterAsync(java.util.Collection<Event> events) |
EventBroadcasterAsync(java.util.Collection<Event> events,
EventLogger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
broadcastAbortTest()
Blocks for all abort tasks to be finished to try to make sure they get called
before jvm shutdown.
|
void |
broadcastAfterTest()
The after test calls of all events will run in parallel, but this method will wait for
all events to finish before returning.
|
void |
broadcastBeforeTest()
The before test calls of all events will run in parallel, but this method will wait for
all events to finish before returning.
|
java.util.List<EventCheck> |
broadcastCheck() |
void |
broadcastCustomEvent(CustomEvent scheduleEvent) |
void |
broadcastKeepAlive() |
void |
shutdownAndWaitAllTasksDone(long timeoutSeconds) |
protected static final int ALL_CALLS_TIME_OUT_SECONDS
public EventBroadcasterAsync(java.util.Collection<Event> events, EventLogger logger)
public EventBroadcasterAsync(java.util.Collection<Event> events)
public void broadcastBeforeTest()
broadcastBeforeTest in interface EventBroadcasterpublic void broadcastAfterTest()
broadcastAfterTest in interface EventBroadcasterpublic void broadcastKeepAlive()
broadcastKeepAlive in interface EventBroadcasterpublic void broadcastAbortTest()
broadcastAbortTest in interface EventBroadcasterpublic void broadcastCustomEvent(CustomEvent scheduleEvent)
broadcastCustomEvent in interface EventBroadcasterpublic java.util.List<EventCheck> broadcastCheck()
broadcastCheck in interface EventBroadcasterpublic void shutdownAndWaitAllTasksDone(long timeoutSeconds)
shutdownAndWaitAllTasksDone in interface EventBroadcaster