Class EventAdapter<E,​P>

  • Direct Known Subclasses:
    NoOpEventAdapter

    public abstract class EventAdapter<E,​P>
    extends java.lang.Object
    Type of the event to persist
    • Constructor Summary

      Constructors 
      Constructor Description
      EventAdapter()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract E fromJournal​(P p)
      Transform the event on recovery from the journal.
      abstract P toJournal​(E e)
      Transform event on the way to the journal
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EventAdapter

        public EventAdapter()
    • Method Detail

      • fromJournal

        public abstract E fromJournal​(P p)
        Transform the event on recovery from the journal. Note that this is not called in any read side so will need to be applied manually when using Query.
        Parameters:
        p - (undocumented)
        Returns:
        (undocumented)
      • toJournal

        public abstract P toJournal​(E e)
        Transform event on the way to the journal
        Parameters:
        e - (undocumented)
        Returns:
        (undocumented)