Package edu.wpi.first.networktables
Class PubSubOptions
java.lang.Object
edu.wpi.first.networktables.PubSubOptions
NetworkTables publish/subscribe options.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
For subscriptions, if local value updates should not be queued for readQueue().boolean
For subscriptions, if remote value updates should not be queued for readQueue().int
For subscriptions, if non-zero, value updates for readQueue() are not queued for this publisher.boolean
For entries, don't queue (for readQueue) value updates for the entry's internal publisher.boolean
For subscriptions, don't share the existence of the subscription with the network.static final double
Default value of periodic.boolean
Preserve duplicate value changes (rather than ignoring them).double
How frequently changes will be sent over the network, in seconds.int
Polling storage size for a subscription.boolean
Perform prefix match on subscriber topic names.boolean
Send all value changes over the network.boolean
For subscriptions, don't ask for value changes (only topic announcements). -
Constructor Summary
-
Method Summary
-
Field Details
-
kDefaultPeriodic
Default value of periodic.- See Also:
-
pollStorage
Polling storage size for a subscription. Specifies the maximum number of updates NetworkTables should store between calls to the subscriber's readQueue() function. If zero, defaults to 1 if sendAll is false, 20 if sendAll is true. -
periodic
How frequently changes will be sent over the network, in seconds. NetworkTables may send more frequently than this (e.g. use a combined minimum period for all values) or apply a restricted range to this value. The default is 100 ms. -
excludePublisher
For subscriptions, if non-zero, value updates for readQueue() are not queued for this publisher. -
sendAll
Send all value changes over the network. -
topicsOnly
For subscriptions, don't ask for value changes (only topic announcements). -
keepDuplicates
Preserve duplicate value changes (rather than ignoring them). -
prefixMatch
Perform prefix match on subscriber topic names. Is ignored/overridden by subscribe() functions; only present in struct for the purposes of getting information about subscriptions. -
disableRemote
For subscriptions, if remote value updates should not be queued for readQueue(). See also disableLocal. -
disableLocal
For subscriptions, if local value updates should not be queued for readQueue(). See also disableRemote. -
excludeSelf
For entries, don't queue (for readQueue) value updates for the entry's internal publisher.
-
-
Constructor Details
-
PubSubOptions
Construct from a list of options.- Parameters:
options
- options
-