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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(TimeListener listener) Returns the value of the latest received timestamp.void
removeListener
(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.
-