Class Event$


  • public class Event$
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Event$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      Event$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SystemEvent badEvent()
      A helper method to create an event which is provided to subscriber when the received bytes could not be decoded into a valid event
      SystemEvent invalidEvent​(EventKey eventKey)
      A helper method to create an event which is provided to subscriber when there is no event available at the time of subscription
      • Methods inherited from class java.lang.Object

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

      • MODULE$

        public static final Event$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • Event$

        public Event$()
    • Method Detail

      • invalidEvent

        public SystemEvent invalidEvent​(EventKey eventKey)
        A helper method to create an event which is provided to subscriber when there is no event available at the time of subscription

        Parameters:
        eventKey - the Event Key for which subscription was made
        Returns:
        an event with the same key as provided but with id and timestamp denoting an invalid event
      • badEvent

        public SystemEvent badEvent()
        A helper method to create an event which is provided to subscriber when the received bytes could not be decoded into a valid event

        Returns:
        an invalid event with the key representing a bad key by using a BAD subsystem