Interface RecordableEventConverter


  • @Role
    public interface RecordableEventConverter
    Convert a RecordableEvent to an Event that could be stored in the event stream.
    Since:
    9.2RC1
    Version:
    $Id: f85550e9f04d116257a19960bbba52bc6660ce76 $
    • 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 convert
        source - the source received with the event
        data - 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