Package csw.params.events
Class Event$
java.lang.Object
csw.params.events.Event$
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbadEvent()
A helper method to create an event which is provided to subscriber when the received bytes could not be decoded into a valid eventinvalidEvent
(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 Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Event$
public Event$()
-
-
Method Details
-
invalidEvent
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
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
-