public class ResultBarrier extends AbstractEventProcessor
RecordedEvents) are
available. If the number is reached, an event is scheduled whose name is equal to the value of the property
'nextEventName'.
ReportService as data-input.
getNextEventName(), if not: reschedules same event.DEFAULT_CHART, DEFAULT_WARN_DELAY, logger| Constructor and Description |
|---|
ResultBarrier(String countEventName,
long expectedCount,
String nextEventName,
ResultService resultService)
Create a new barrier.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getNextEventName() |
EventResult |
processEvent(Event event)
Process an event.
|
void |
setCheckInterval(long checkInterval)
Set the interval this event is scheduled to check if barrier can be released.
|
void |
setNextEventName(String nextEventName) |
getWarnDelay, isChart, register, setBeanName, setChart, setEventName, setEventNames, setRegistry, setWarnDelaypublic ResultBarrier(String countEventName, long expectedCount, String nextEventName, ResultService resultService)
nextEventName - name of the event to queue when barrier is released.eventService - event servicepublic EventResult processEvent(Event event) throws Exception
EventProcessorevent - the event (along with associated data)Exceptionpublic void setNextEventName(String nextEventName)
nextEventName - name of the event to queue when number is reached.public String getNextEventName()
public void setCheckInterval(long checkInterval)
checkInterval - interval in millisCopyright © 2012. All Rights Reserved.