Package org.yamcs.client
Class TimeSubscription
java.lang.Object
org.yamcs.client.base.AbstractSubscription<SubscribeTimeRequest,com.google.protobuf.Timestamp>
org.yamcs.client.TimeSubscription
- All Implemented Interfaces:
Future<Void>,Subscription<SubscribeTimeRequest,com.google.protobuf.Timestamp>
public class TimeSubscription
extends AbstractSubscription<SubscribeTimeRequest,com.google.protobuf.Timestamp>
Subscription for receiving time updates.
-
Field Summary
Fields inherited from class org.yamcs.client.base.AbstractSubscription
clientObserver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(TimeListener listener) Returns the value of the latest received timestamp.voidremoveListener(TimeListener listener) Methods inherited from class org.yamcs.client.base.AbstractSubscription
addMessageListener, awaitConfirmation, awaitConfirmation, cancel, get, get, getConfirmationFuture, isCancelled, isDone, sendMessage
-
Constructor Details
-
TimeSubscription
-
-
Method Details
-
addListener
-
removeListener
-
getCurrent
Returns the value of the latest received timestamp.
-