public class Event$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Event$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
Event$() |
Modifier and Type | Method and 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
|
Event |
fromPb(csw_protobuf.events.PbEvent pbEvent)
A helper method internally used to create an Event out of provided pbEvent
|
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
|
<T extends Event> |
typeMapper()
TypeMapper definitions are required for to/from conversion PbEvent(Protobuf) <==> System, Observe event.
|
public static final Event$ MODULE$
public <T extends Event> scalapb.TypeMapper<csw_protobuf.events.PbEvent,T> typeMapper()
public Event fromPb(csw_protobuf.events.PbEvent pbEvent)
pbEvent
- a PbEvent representing Event in protobufpublic SystemEvent invalidEvent(EventKey eventKey)
eventKey
- the Event Key for which subscription was madepublic SystemEvent badEvent()