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.
  • Constructor Details

    • TimeSubscription

      protected TimeSubscription(MethodHandler methodHandler)
  • Method Details

    • addListener

      public void addListener(TimeListener listener)
    • removeListener

      public void removeListener(TimeListener listener)
    • getCurrent

      public Instant getCurrent()
      Returns the value of the latest received timestamp.