Package csw.params.events
Class Event$
- java.lang.Object
-
- csw.params.events.Event$
-
public class Event$ extends java.lang.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 eventSystemEvent
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
-
-
-
Field Detail
-
MODULE$
public static final Event$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
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
-
-