
org.yamcs.protobuf.SessionsApiClient 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 org.yamcs.api.MethodHandler;
import org.yamcs.api.Observer;
@javax.annotation.processing.Generated(value = "org.yamcs.maven.ServiceGenerator", date = "2025-02-13T11:12:59.910107900Z")
public class SessionsApiClient extends AbstractSessionsApi {
private final MethodHandler handler;
public SessionsApiClient(MethodHandler handler) {
this.handler = handler;
}
/**
*
* List sessions
*
*/
@Override
public final void listSessions(Void ctx, Empty request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(0),
request,
ListSessionsResponse.getDefaultInstance(),
observer);
}
/**
*
* Receive notification when own session ends
*
*/
@Override
public final void subscribeSession(Void ctx, Empty request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(1),
request,
SessionEventInfo.getDefaultInstance(),
observer);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy