Package org.xwiki.eventstream
Interface RecordableEventConverter
-
@Role public interface RecordableEventConverter
Convert aRecordableEvent
to anEvent
that could be stored in the event stream.- Since:
- 9.2RC1
- Version:
- $Id: f85550e9f04d116257a19960bbba52bc6660ce76 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Event
convert(RecordableEvent recordableEvent, String source, Object data)
Convert a notification event to a stream event.List<RecordableEvent>
getSupportedEvents()
-
-
-
Method Detail
-
convert
Event convert(RecordableEvent recordableEvent, String source, Object data) throws Exception
Convert a notification event to a stream event.- Parameters:
recordableEvent
- the event to convertsource
- the source received with the eventdata
- the data received with the event- Returns:
- the converted stream event, ready to be stored
- Throws:
Exception
- if error happens
-
getSupportedEvents
List<RecordableEvent> getSupportedEvents()
- Returns:
- the list of events supported by this converter
-
-