C - The client messageS - The server messagepublic interface Subscription<C extends com.google.protobuf.Message,S extends com.google.protobuf.Message> extends Future<Void>
Topics are capable of bi-directional communication, where each topic has only a single client and server message type. In practice most topics are one-directional, with the client issuing a single subscription request.
A topic subscription is usually long-running. The server keeps pushing updates until the client cancels the call, or closes the connection. Instances of this class are also futures covering the lifecycle of the call (or any error replies to sent message).
This base class adds general listener support for receiving the unprocessed data messages. Specific implementations of this class sometimes add more customized functionalities, such as polling or processing.
| Modifier and Type | Method and Description |
|---|---|
void |
addMessageListener(MessageListener<S> listener)
Get updated on received server messages.
|
void |
sendMessage(C message)
Sends a message to Yamcs.
|
void addMessageListener(MessageListener<S> listener)
void sendMessage(C message)
Copyright © 2020 Space Applications Services. All rights reserved.