public class OnChangeWithKeepAliveSubscriptionQos extends OnChangeSubscriptionQos implements HeartbeatSubscriptionInformation
DEFAULT_PUBLICATION_TTL_MS, MAX_PUBLICATION_TTL_MS, MIN_PUBLICATION_TTL_MSIGNORE_VALUE, INFINITE_SUBSCRIPTION, NO_EXPIRY_DATE| Constructor and Description |
|---|
OnChangeWithKeepAliveSubscriptionQos()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearAlertAfterInterval() |
boolean |
equals(Object obj)
Check for equality
|
long |
getAlertAfterIntervalMs()
Get the alertAfterInterval in milliseconds.
|
long |
getMaxIntervalMs()
Get the maximum interval in milliseconds.
|
long |
getPeriodMs()
Get the maximum interval in milliseconds.
|
int |
hashCode()
Calculate code for hashing based on member contents and superclass
|
OnChangeWithKeepAliveSubscriptionQos |
setAlertAfterIntervalMs(long alertAfterIntervalMs)
Set the alertAfterInterval in milliseconds.
|
OnChangeWithKeepAliveSubscriptionQos |
setExpiryDateMs(long expiryDateMs)
Set the end date of the subscription, in milliseconds (since 1970-01-01T00:00:00.000 ).
|
OnChangeWithKeepAliveSubscriptionQos |
setMaxIntervalMs(long maxIntervalMs)
Set the maximum interval in milliseconds.
|
OnChangeWithKeepAliveSubscriptionQos |
setMinIntervalMs(long minIntervalMs)
Set the minimum interval in milliseconds.
|
OnChangeWithKeepAliveSubscriptionQos |
setPublicationTtlMs(long publicationTtlMs)
Set the time-to-live for notification messages.
|
OnChangeWithKeepAliveSubscriptionQos |
setValidityMs(long validityMs)
Set how long the subscription should run for, in milliseconds.
|
getMinIntervalMsgetPublicationTtlMsclearExpiryDate, getExpiryDateMspublic OnChangeWithKeepAliveSubscriptionQos()
public long getMaxIntervalMs()
public long getPeriodMs()
getPeriodMs in interface HeartbeatSubscriptionInformationpublic OnChangeWithKeepAliveSubscriptionQos setMaxIntervalMs(long maxIntervalMs)
maxIntervalMs - The publisher will send a notification at least every
maxIntervalMs.public long getAlertAfterIntervalMs()
getAlertAfterIntervalMs in interface HeartbeatSubscriptionInformationpublic OnChangeWithKeepAliveSubscriptionQos setAlertAfterIntervalMs(long alertAfterIntervalMs)
alertAfterIntervalMs - the max time that can expire without receiving a publication
before an alert will be generated. If more than alertIntervalMs
pass without receiving a message, subscriptionManager will issue
a publicationMissed.
public OnChangeWithKeepAliveSubscriptionQos setExpiryDateMs(long expiryDateMs)
SubscriptionQossetExpiryDateMs in class OnChangeSubscriptionQosexpiryDateMs - is the end date of the subscription. public OnChangeWithKeepAliveSubscriptionQos setMinIntervalMs(long minIntervalMs)
OnChangeSubscriptionQossetMinIntervalMs in class OnChangeSubscriptionQosminIntervalMs - The publisher will keep a minimum idle time of minIntervalMs
between two successive notifications.public OnChangeWithKeepAliveSubscriptionQos setPublicationTtlMs(long publicationTtlMs)
UnicastSubscriptionQossetPublicationTtlMs in class OnChangeSubscriptionQospublicationTtlMs - publicationTtlMs time-to-live in milliseconds.public OnChangeWithKeepAliveSubscriptionQos setValidityMs(long validityMs)
SubscriptionQossetValidityMs in class OnChangeSubscriptionQosvalidityMs - is the number of milliseconds until the subscription will expirepublic void clearAlertAfterInterval()
public int hashCode()
hashCode in class OnChangeSubscriptionQospublic boolean equals(Object obj)
equals in class OnChangeSubscriptionQosobj - Reference to the object to compare toCopyright © 2021. All rights reserved.