Class Event$

java.lang.Object
csw.params.events.Event$

public class Event$ extends Object
  • Field Summary

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    A helper method to create an event which is provided to subscriber when the received bytes could not be decoded into a valid event
    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 Details

    • MODULE$

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

    • Event$

      public Event$()
  • Method Details

    • 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