Package org.yamcs.client
Class ParameterSubscription
java.lang.Object
org.yamcs.client.base.AbstractSubscription<SubscribeParametersRequest,SubscribeParametersData>
org.yamcs.client.ParameterSubscription
- All Implemented Interfaces:
Future<Void>
,Subscription<SubscribeParametersRequest,
SubscribeParametersData>
public class ParameterSubscription
extends AbstractSubscription<SubscribeParametersRequest,SubscribeParametersData>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected Set<ParameterSubscription.Listener>
protected Map<Integer,
Yamcs.NamedObjectId> Fields inherited from class org.yamcs.client.base.AbstractSubscription
clientObserver
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(List<Yamcs.NamedObjectId> ids) Extends the ongoing subscription with the provided identifiers.void
addListener
(ParameterSubscription.Listener listener) Get the latest value for a specific parameter.protected void
processMessage
(SubscribeParametersData message) void
remove
(List<Yamcs.NamedObjectId> ids) Shrinks 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
-
-
Method Details
-
processMessage
-
addListener
-
get
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.
-