public interface EventProcessor
result of event processing
does not have to contain any further events. However, it is better to publish a 'finished' event
as it allows more flexibility in wiring test scenarios together.
start -> doA -> doB -> doB.done
It is possible to remap doB.done above back into doA and thereby create an
test that never ends, for example.
data the input event must contain),
likely actions and the possible output e.g.SessionService| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
long |
getWarnDelay()
Provide a hint for the processing framework on how much time should elapse before
the warnings need to be issued over the delay
|
boolean |
isAutoCloseSessionId()
Must the framework auto-close any event sessions that cannot be propagated? This
will be called if there are no further events to publish, either through an exception
coming out of the processing or because an event has no further events in the chain.
|
boolean |
isAutoPropagateSessionId()
Must the framework automatically carry event sessions from event to event.
|
boolean |
isChart()
Hint whether the result should be included in charts
|
EventResult |
processEvent(Event event,
org.apache.commons.lang3.time.StopWatch stopWatch)
Process an event.
|
String getName()
long getWarnDelay()
boolean isChart()
EventResult processEvent(Event event, org.apache.commons.lang3.time.StopWatch stopWatch) throws Exception
StopWatch.start() and StopWatch.stop()
the timer to better reflect actual event processing.event - the event (along with associated data)stopWatch - the timer that will be used or null to have one
created and attached to the process automaticallyExceptionboolean isAutoPropagateSessionId()
boolean isAutoCloseSessionId()
Copyright © 2005–2018 Alfresco Software. All rights reserved.