java.lang.Object
org.yamcs.client.base.AbstractSubscription<org.yamcs.protobuf.SubscribeParametersRequest,org.yamcs.protobuf.SubscribeParametersData>
org.yamcs.client.ParameterSubscription
- All Implemented Interfaces:
Future<Void>,Subscription<org.yamcs.protobuf.SubscribeParametersRequest,org.yamcs.protobuf.SubscribeParametersData>
public class ParameterSubscription
extends AbstractSubscription<org.yamcs.protobuf.SubscribeParametersRequest,org.yamcs.protobuf.SubscribeParametersData>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.yamcs.client.base.AbstractSubscription
clientObserver -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedParameterSubscription(org.yamcs.api.MethodHandler methodHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoidExtends the ongoing subscription with the provided identifiers.voidaddListener(ParameterSubscription.Listener listener) org.yamcs.protobuf.Pvalue.ParameterValueget(org.yamcs.protobuf.Yamcs.NamedObjectId id) Get the latest value for a specific parameter.protected voidprocessMessage(org.yamcs.protobuf.SubscribeParametersData message) voidShrinks the ongoing subscription by removing the provided identifiers.Methods inherited from class org.yamcs.client.base.AbstractSubscription
addMessageListener, awaitConfirmation, awaitConfirmation, cancel, get, get, getConfirmationFuture, isCancelled, isDone, sendMessage
-
Field Details
-
listeners
-
mapping
-
-
Constructor Details
-
ParameterSubscription
protected ParameterSubscription(org.yamcs.api.MethodHandler methodHandler)
-
-
Method Details
-
processMessage
protected void processMessage(org.yamcs.protobuf.SubscribeParametersData message) -
addListener
-
get
public org.yamcs.protobuf.Pvalue.ParameterValue get(org.yamcs.protobuf.Yamcs.NamedObjectId id) Get the latest value for a specific parameter. This method looks for the value from a local cache. It does not contact Yamcs. -
add
Extends the ongoing subscription with the provided identifiers. -
remove
Shrinks the ongoing subscription by removing the provided identifiers.
-