Class SubscriptionQos

  • All Implemented Interfaces:
    JoynrType, Serializable
    Direct Known Subclasses:
    MulticastSubscriptionQos, UnicastSubscriptionQos

    public abstract class SubscriptionQos
    extends Object
    implements JoynrType
    Base class representing the subscription quality of service settings.
    This class stores quality of service settings used for subscriptions to attributes and broadcasts in generated proxy objects. The subscription will automatically expire after the expiry date is reached.
    See Also:
    Serialized Form
    • Constructor Detail

      • SubscriptionQos

        public SubscriptionQos()
        Default Constructor
    • Method Detail

      • getExpiryDateMs

        public long getExpiryDateMs()
        Get the end date of the subscription.
        The provider will send notifications until the expiry date is reached. You will not receive any notifications (neither value notifications nor missed publication notifications) after this date.
        Returns:
        the end date of the subscription.
        This value is provided in milliseconds (since 1970-01-01T00:00:00.000).
      • setExpiryDateMs

        public SubscriptionQos setExpiryDateMs​(long expiryDateMs)
        Set the end date of the subscription, in milliseconds (since 1970-01-01T00:00:00.000 ). The publications will automatically expire at that date.
        The provider will send notifications until the expiry date is reached. You will not receive any notifications (neither value notifications nor missed publication notifications) after this date.
        Parameters:
        expiryDateMs - is the end date of the subscription.
        This value is provided in milliseconds (since 1970-01-01T00:00:00.000). 0L means NO_EXPIRY_DATE.
        Returns:
        the subscriptionQos (fluent interface)
      • setValidityMs

        public SubscriptionQos setValidityMs​(long validityMs)
        Set how long the subscription should run for, in milliseconds. This is a helper method that allows setting the expiryDate using a relative time.
        Parameters:
        validityMs - is the number of milliseconds until the subscription will expire
        Returns:
        the subscriptionQos (fluent interface)
      • clearExpiryDate

        public void clearExpiryDate()
        Resets the expiry date to the default value 0L (NO_EXPIRY_DATE).
      • hashCode

        public int hashCode()
        Calculate code for hashing based on member contents
        Overrides:
        hashCode in class Object
        Returns:
        The calculated hash code
      • equals

        public boolean equals​(Object obj)
        Check for equality
        Overrides:
        equals in class Object
        Parameters:
        obj - Reference to the object to compare to
        Returns:
        true, if objects are equal, false otherwise