public class WebSocketEventProducer extends AbstractEventProducer implements WebSocketClientCallback
By default, repeated message are detected and reduced, resulting in pseudo events with a message like 'last event repeated X times'. This behaviour can be turned off.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection to the server; the producer is unusable after this is called
|
void |
disconnected()
When a previously successful connection was disconnected
|
long |
getMissionTime() |
void |
onMessage(Web.WebSocketServerMessage.WebSocketSubscriptionData data) |
void |
sendEvent(Yamcs.Event event) |
String |
toString() |
flushEventBuffer, newEvent, sendError, sendInfo, sendWarning, setRepeatedEventReduction, setSeqNo, setSourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconnected, connectionFailed, onInvalidIdentificationpublic void disconnected()
WebSocketClientCallbackdisconnected in interface WebSocketClientCallbackpublic void close()
EventProducerclose in interface EventProducerpublic void sendEvent(Yamcs.Event event)
sendEvent in interface EventProducerpublic long getMissionTime()
getMissionTime in class AbstractEventProducerpublic void onMessage(Web.WebSocketServerMessage.WebSocketSubscriptionData data)
onMessage in interface WebSocketClientCallbackCopyright © 2017 Space Applications Services. All rights reserved.