
org.yamcs.protobuf.TimeApiClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yamcs-api Show documentation
Show all versions of yamcs-api Show documentation
Used by external clients to communicate with Yamcs
package org.yamcs.protobuf;
import com.google.protobuf.Empty;
import com.google.protobuf.Timestamp;
import org.yamcs.api.MethodHandler;
import org.yamcs.api.Observer;
@javax.annotation.processing.Generated(value = "org.yamcs.maven.ServiceGenerator", date = "2025-02-13T11:12:59.909991294Z")
public class TimeApiClient extends AbstractTimeApi {
private final MethodHandler handler;
public TimeApiClient(MethodHandler handler) {
this.handler = handler;
}
/**
*
* Get UTC leap seconds
*
*/
@Override
public final void getLeapSeconds(Void ctx, Empty request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(0),
request,
LeapSecondsTable.getDefaultInstance(),
observer);
}
/**
*
* Set (simulation) time of an instance
*
*/
@Override
public final void setTime(Void ctx, SetTimeRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(1),
request,
Empty.getDefaultInstance(),
observer);
}
/**
*
* Receive time updates
*
*/
@Override
public final void subscribeTime(Void ctx, SubscribeTimeRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(2),
request,
Timestamp.getDefaultInstance(),
observer);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy