public interface EventListener
Event
consumers. E.g. a listener can send email with notification or
dump the event to an auditing database.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_FAILURES |
Modifier and Type | Method and Description |
---|---|
String |
getId() |
int |
getMaxFailures() |
boolean |
handleEvent(pl.edu.icm.unity.base.event.Event event)
Called only on events of a proper category, for which isWanted returned true.
|
boolean |
isAsync(pl.edu.icm.unity.base.event.Event event)
This method should return whether async processing is allowed.
|
boolean |
isLightweight() |
boolean |
isWanted(pl.edu.icm.unity.base.event.Event event)
This method should perform a fast filtering of uninteresting events.
|
static final int DEFAULT_MAX_FAILURES
boolean isLightweight()
boolean isWanted(pl.edu.icm.unity.base.event.Event event)
event
- boolean isAsync(pl.edu.icm.unity.base.event.Event event)
event
- boolean handleEvent(pl.edu.icm.unity.base.event.Event event)
event
- String getId()
int getMaxFailures()
DEFAULT_MAX_FAILURES
Copyright © 2018 Unity. All rights reserved.