Class EventSeq

  • Direct Known Subclasses:
    EmptyEventSeq$, EventsSeq, SingleEventSeq

    public abstract class EventSeq
    extends java.lang.Object
    Convert a event from its journal model to the applications domain model.

    One event may be adapter into multiple (or none) events which should be delivered to the PersistentActor. Use the specialised single(java.lang.Object) method to emit exactly one event, or empty() in case the adapter is not handling this event. Multiple EventAdapter instances are applied in order as defined in configuration and their emitted event seqs are concatenated and delivered in order to the PersistentActor.

    param: event event to be adapted before delivering to the PersistentActor param: manifest optionally provided manifest (type hint) in case the Adapter has stored one for this event, "" if none

    • Constructor Summary

      Constructors 
      Constructor Description
      EventSeq()  
    • Constructor Detail

      • EventSeq

        public EventSeq()
    • Method Detail

      • create

        public static final EventSeq create​(java.lang.Object... events)
      • empty

        public static final EventSeq empty()
      • single

        public static final EventSeq single​(java.lang.Object event)
        Java API
      • create

        public static final EventSeq create​(scala.collection.immutable.Seq<java.lang.Object> events)
        Java API
      • apply

        public static final EventSeq apply​(scala.collection.immutable.Seq<java.lang.Object> events)
      • events

        public abstract scala.collection.immutable.Seq<java.lang.Object> events()