Class MultiSubscriber
java.lang.Object
org.wpilib.networktables.MultiSubscriber
- All Implemented Interfaces:
AutoCloseable
Subscribe to multiple topics based on one or more topic name prefixes. Can be used in combination
with NetworkTableListenerPoller to listen for value changes across all matching topics.
-
Constructor Summary
ConstructorsConstructorDescriptionMultiSubscriber(NetworkTableInstance inst, String[] prefixes, PubSubOption... options) Create a multiple subscriber. -
Method Summary
-
Constructor Details
-
MultiSubscriber
Create a multiple subscriber.- Parameters:
inst- instanceprefixes- topic name prefixesoptions- subscriber options
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable
-
getInstance
-
isValid
Determines if the native handle is valid.- Returns:
- True if the native handle is valid, false otherwise.
-
getHandle
-