Class PubSubOptions
java.lang.Object
org.wpilib.networktables.PubSubOptions
NetworkTables publish/subscribe options.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleDefault value of periodic.booleanFor subscriptions, if local value updates should not be queued for readQueue().booleanFor subscriptions, if remote value updates should not be queued for readQueue().booleanFor subscriptions, don't signal the local handle when value updates are queued.intFor subscriptions, if non-zero, value updates for readQueue() are not queued for this publisher.booleanFor entries, don't queue (for readQueue) value updates for the entry's internal publisher.booleanFor subscriptions, don't share the existence of the subscription with the network.booleanPreserve duplicate value changes (rather than ignoring them).doubleHow frequently changes will be sent over the network, in seconds.intPolling storage size for a subscription.booleanPerform prefix match on subscriber topic names.booleanSend all value changes over the network.booleanFor subscriptions, don't ask for value changes (only topic announcements). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT_PERIODIC
public static final double DEFAULT_PERIODICDefault value of periodic.- See Also:
-
pollStorage
public int pollStoragePolling 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
public double periodicHow 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
public int excludePublisherFor subscriptions, if non-zero, value updates for readQueue() are not queued for this publisher. -
sendAll
public boolean sendAllSend all value changes over the network. -
topicsOnly
public boolean topicsOnlyFor subscriptions, don't ask for value changes (only topic announcements). -
keepDuplicates
public boolean keepDuplicatesPreserve duplicate value changes (rather than ignoring them). -
prefixMatch
public boolean prefixMatchPerform 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
public boolean disableRemoteFor subscriptions, if remote value updates should not be queued for readQueue(). See also disableLocal. -
disableLocal
public boolean disableLocalFor subscriptions, if local value updates should not be queued for readQueue(). See also disableRemote. -
excludeSelf
public boolean excludeSelfFor entries, don't queue (for readQueue) value updates for the entry's internal publisher. -
disableSignal
public boolean disableSignalFor subscriptions, don't signal the local handle when value updates are queued.
-
-
Constructor Details
-
PubSubOptions
Construct from a list of options.- Parameters:
options- options
-